logCustomEvent method

void logCustomEvent(
  1. String eventName,
  2. {Map<String, dynamic>? properties}
)

Logs a custom event to Braze.

Implementation

void logCustomEvent(String eventName, {Map<String, dynamic>? properties}) {
  final Map<String, dynamic> params = <String, dynamic>{
    "eventName": eventName,
  };
  if (properties != null) {
    // Omits entry when properties is null
    params["properties"] = properties;
  }
  _channel.invokeMethod('logCustomEvent', params);
}