invokeMethod<R> method
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,
},
);