Avoid non-nullable Future.value() (#84138)

This commit is contained in:
Simon Binder 2021-06-10 20:54:04 +02:00 committed by GitHub
parent 3193285c7d
commit 01e823c4fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ void main() {
});
test('can check the mock handler', () {
Future<ByteData> handler(ByteData? call) => Future<ByteData>.value(null);
Future<ByteData?> handler(ByteData? call) => Future<ByteData?>.value(null);
final TestDefaultBinaryMessenger messenger = TestDefaultBinaryMessengerBinding.instance!.defaultBinaryMessenger;
expect(messenger.checkMockMessageHandler('test_channel', null), true);