trackEvent method Null safety

void trackEvent(
  1. {required String category,
  2. Map<String, dynamic>? semanticAttributes,
  3. Map<String, dynamic>? customAttributes}
)

Tracks user behavior through event tracking with attributes.

  • Parameter category Name of event.
  • Parameter semanticAttributes Additional attributes of the event that defined by Airbridge.
  • Parameter customAttributes Additional attributes of the event.

Implementation

static void trackEvent({
  required String category,
  Map<String, dynamic>? semanticAttributes,
  Map<String, dynamic>? customAttributes,
}) {
  Logger.called('trackEvent');
  _event.trackEvent(
      category: category,
      semanticAttributes: semanticAttributes,
      customAttributes: customAttributes);
}