trackEvent method

void trackEvent({
  1. required String name,
  2. Map<String, Object> additionalProperties = const <String, Object>{},
  3. DateTime? timestamp,
})

Creates an EventTelemetryItem item and forwards it onto the processor.

Implementation

void trackEvent({
  required String name,
  Map<String, Object> additionalProperties = const <String, Object>{},
  DateTime? timestamp,
}) =>
    _track(EventTelemetryItem(
      name: name,
      additionalProperties: additionalProperties,
      timestamp: timestamp,
    ));