sendCrossDeviceTransCommand method Null safety

Future<void> sendCrossDeviceTransCommand(
  1. {required String? message,
  2. required JMPlatformType? platform}
)

设备间透传命令

Implementation

Future<void> sendCrossDeviceTransCommand({
  required String? message,
  required JMPlatformType? platform,
}) async {
  Map param = Map();
  param["message"] = message;
  param["type"] = getStringFromEnum(platform);
  param.removeWhere((key, value) => value == null);

  await _channel.invokeMethod('sendCrossDeviceTransCommand', param);
}