handleMethodCall method

Future handleMethodCall(
  1. MethodCall call
)

Implementation

Future<dynamic> handleMethodCall(MethodCall call) async {
  switch (call.method as ChannelMessage) {
    case ChannelMessage.sendMethodMessageToClient:
      return sendMethodMessage(call.method as JsEvent, call.arguments);
    default:
      throw PlatformException(
        code: 'Unimplemented',
        details:
            'flutter_plugin for web doesn\'t implement \'${call.method}\'',
      );
  }
}