Enable avoid_redundant_argument_values lint (#91409) (#91462)

This commit is contained in:
Ian Hickson
2021-10-08 09:25:14 -07:00
committed by GitHub
parent ac88d4ba5d
commit 61a0add286
667 changed files with 1694 additions and 3386 deletions

View File

@@ -44,7 +44,7 @@ void main() {
TestPlugin.calledMethods.clear();
const MethodChannel frameworkChannel =
MethodChannel('test_plugin', StandardMethodCodec());
MethodChannel('test_plugin');
frameworkChannel.invokeMethod<void>('test1');
expect(TestPlugin.calledMethods, equals(<String>['test1']));
@@ -57,7 +57,7 @@ void main() {
ServicesBinding.instance!.defaultBinaryMessenger
.setMessageHandler('test_send', (ByteData? data) {
loggedMessages.add(codec.decodeMessage(data)! as String);
return Future<ByteData?>.value(null);
return Future<ByteData?>.value();
});
await pluginBinaryMessenger.send(