trackEvent method

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

Tracks an event with the provided eventName and eventProperties.

This is used to track events in the AppFit dashboard.

Implementation

void trackEvent(
  String eventName, {
  Map<String, String>? eventProperties,
}) async {
  final event = AppFitEvent(name: eventName, properties: eventProperties);
  track(event);
}