invokeMethod static method
Flutter通知其他端
Implementation
static Future<bool> invokeMethod({
required String method,
Map<String, dynamic>? params,
}) async {
try {
return await _channel.invokeMethod(method, params ?? {});
} catch (e) {
print(e);
}
return false;
}