invokeMethod<T> method
Implementation
Future<T?> invokeMethod<T>(String method, [Map<String, dynamic>? arguments]) {
_setupMethodChannelIfNeeded();
return _methodChannel?.invokeMethod<T>(method, arguments) ?? Future.value();
}
Future<T?> invokeMethod<T>(String method, [Map<String, dynamic>? arguments]) {
_setupMethodChannelIfNeeded();
return _methodChannel?.invokeMethod<T>(method, arguments) ?? Future.value();
}