something wrong with my code, I want send message to Flutter.
static const channel = MethodChannel('foo');
channel.setMethodCallHandler((MethodCall call) async {
switch (call.method) {
case 'bar':
return 'Hello, ${call.arguments}';
default:
throw MissingPluginException();
}
});