handleMethodCall static method

Future<void> handleMethodCall(
  1. MethodCall call
)

Implementation

static Future<void> handleMethodCall(MethodCall call) async {
  final wrappers = _listeners[call.method];
  if (wrappers == null || wrappers.isEmpty) {
    throw MissingPluginException('No handler for ${call.method}');
  }

  for (var wrapper in wrappers) {
    wrapper.handler(call);
  }
}