invokeNativeMethod<T> function
Invoke Native method and get result
Implementation
Future<T?> invokeNativeMethod<T>(
String channel,
String method, [
dynamic arguments,
]) async {
var platform = MethodChannel(channel);
return await platform.invokeMethod<T>(method, arguments);
}