invokeMethod<T, P> static method
Implementation
static Future<T> invokeMethod<T, P>(String methodName,
[dynamic param]) async {
var response = await _channel.invokeMethod<T>(
methodName,
param,
);
if (response == null) {
throw Exception('Invoke method: $methodName return a null response');
}
return response;
}