trackEvent method

void trackEvent(
  1. String eventName, [
  2. MoEProperties? eventAttributes
])

Tracks an event with the given attributes. eventName - Name of the Event to be tracked eventAttributes - Instance of MoEProperties

Implementation

void trackEvent(String eventName, [MoEProperties? eventAttributes]) {
  eventAttributes ??= MoEProperties();
  _platform.trackEvent(eventName, eventAttributes, appId);
}