trackEvent method

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

Tracks an event with the provided eventName and properties.

This is used to track events in the AppFit dashboard.

Implementation

void trackEvent(
  String eventName, {
  Map<String, dynamic>? properties,
}) {
  track(AppFitEvent(name: eventName, properties: properties));
}