This reverts commit 5fd259be24.
This commit is contained in:
@@ -44,7 +44,7 @@ void main() {
|
||||
TestPlugin.calledMethods.clear();
|
||||
|
||||
const MethodChannel frameworkChannel =
|
||||
MethodChannel('test_plugin');
|
||||
MethodChannel('test_plugin', StandardMethodCodec());
|
||||
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();
|
||||
return Future<ByteData?>.value(null);
|
||||
});
|
||||
|
||||
await pluginBinaryMessenger.send(
|
||||
|
||||
Reference in New Issue
Block a user