invokeMethod static method
Implementation
static Future<int> invokeMethod(
String method,
Map<String, dynamic> args,
) async {
final result = await _channel.invokeMethod<int>(method, args);
return result ?? 0; // if null, we assume error
}
static Future<int> invokeMethod(
String method,
Map<String, dynamic> args,
) async {
final result = await _channel.invokeMethod<int>(method, args);
return result ?? 0; // if null, we assume error
}