track method

  1. @override
Future<bool> track(
  1. String eventType, {
  2. String? trafficType,
  3. double? value,
  4. Map<String, dynamic> properties = const {},
})
override

Enqueue a new event to be sent to Split data collection services.

eventType is a String representing the event type.

trafficType optionally specifies which traffic type this event belongs to.

A value can be specified if desired.

A Map of custom properties can be specified in properties.

Implementation

@override
Future<bool> track(String eventType,
    {String? trafficType,
    double? value,
    Map<String, dynamic> properties = const {}}) async {
  return _platform.track(
      matchingKey: _matchingKey,
      bucketingKey: _bucketingKey,
      eventType: eventType,
      trafficType: trafficType,
      value: value,
      properties: properties);
}