trackEvent static method

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

Records eventName against the current user.

properties may hold any values the platform message codec supports — String, num, bool, List and Map. Entries with a null value are dropped natively rather than failing the event.

Implementation

static Future<void> trackEvent(
  String eventName, {
  Map<String, dynamic>? properties,
}) {
  return BooleanMathsFlutterSdkPlatform.instance.trackEvent(
    eventName,
    properties: properties,
  );
}