sendMsgToMainScreen static method

Future<void> sendMsgToMainScreen(
  1. String method, {
  2. Map<String, dynamic>? params,
})

给副屏幕调用,发送事件体给主屏

Implementation

static Future<void> sendMsgToMainScreen(
  String method, {
  Map<String, dynamic>? params,
}) async {
  await _subChannel?.invokeMethod(method, params ?? {});
}