trackCustomEvent static method

Future<void> trackCustomEvent(
  1. String eventName,
  2. Map<String, String>? eventAttributes
)

Implementation

static Future<void> trackCustomEvent(
    String eventName, Map<String, String>? eventAttributes) {
  Map<String, Object> attributes = <String, Object>{};
  attributes["eventName"] = eventName;
  if (eventAttributes != null) {
    attributes["eventAttributes"] = eventAttributes;
  }
  return _channel.invokeMethod('trackCustomEvent', attributes);
}