commitToMultiEngine static method

Future commitToMultiEngine({
  1. required String eventName,
  2. dynamic data,
})

Implementation

static Future<dynamic> commitToMultiEngine({required String eventName, dynamic data}) async {
  /// 如果支持多引擎则交给原生处理
  Map<String, dynamic> methodArguments = {};
  methodArguments['eventName'] = eventName;
  methodArguments['data'] = data;
  final result = await instance.methodChannel.send(methodArguments);
  return result;
}