triggerBroadcastNotification static method
Future<void>
triggerBroadcastNotification(
- String messageDataJson
)
Implementation
static Future<void> triggerBroadcastNotification(String messageDataJson) async {
try {
print("Sending JSON to Kotlin: $messageDataJson");
await _channel.invokeMethod('triggerBroadcastNotification', {'message_data_in_string': messageDataJson});
print("Sent JSON to Kotlin: $messageDataJson");
} on PlatformException catch (e) {
print("Error invoking triggerBroadcastNotification: ${e.message}");
}
}