invokeMethod<T> method
Invoke a platform method and return a typed result.
Implementation
@override
Future<T?> invokeMethod<T>(String method, [Map<String, dynamic>? arguments]) {
return _methodChannel.invokeMethod<T>(method, arguments);
}