track method

Future<RecordedEvent> track(
  1. String name, {
  2. Map<String, EventProperty>? properties,
})

Implementation

Future<RecordedEvent> track(String name, {Map<String, EventProperty>? properties}) async {
  final subscriberId = _requireSubscriberId();
  return _capture(
    () => _api.trackEvent(
      subscriberId: subscriberId,
      name: name,
      properties: properties,
    ),
  );
}