sendEvent static method

void sendEvent(
  1. String eventName, [
  2. Map<String, dynamic>? eventProperties
])

Sends custom events to the server and returns with trigger data(if any)

@param eventName Name the event like onDeviceReady @param eventProperties Properties associated with the event

Implementation

static void sendEvent(String eventName,
    [Map<String, dynamic>? eventProperties]) async {
  _channel.invokeMethod("sendEvent",
      {"eventName": eventName, "eventProperties": eventProperties});
}