invokeMethod<R> method

  1. @protected
Future<R?> invokeMethod<R>(
  1. String method, [
  2. Map<String, dynamic>? arguments
])

Invokes a method on the method channel.

Implementation

@protected
Future<R?> invokeMethod<R>(String method, [Map<String, dynamic>? arguments]) => _channel.invokeMethod<R>(
      '$_classType.$method',
      {
        ...toJson(),
        if (arguments != null) ...arguments,
      },
    );