sendPlatformCrossEvent method
Sending cross platform event message (one-way)
Implementation
@override
Future<bool> sendPlatformCrossEvent(NUIMiniProgramMessage message) async{
try {
final result = await js.context.callMethod('postNUIMessage', [jsonEncode(message)]);
return true;
}catch(e){
print("[NUIMiniProgramJSEngine] Failed to post NUI Message with error : $e");
return false;
}
}