trackEvent abstract method

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

Creates an event message to be tracked to the tracking services.

The eventName parameter specifies the name of the event. The optional properties parameter is a map of properties associated with the event.

Supported types for properties:

All other types will be ignored.

Implementation

Future<void> trackEvent({
  required String eventName,
  Map<String, dynamic>? properties,
});