sendMsgToViceScreen static method

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

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

Implementation

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