Unverified Commit 01e823c4 authored by Simon Binder's avatar Simon Binder Committed by GitHub

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

parent 3193285c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment