AppFit class Tracking

AppFit handles all of the event tracking for the AppFit dashboard.

To use the AppFit SDK, you must first initialize it with an AppFitConfiguration.

final configuration = AppFitConfiguration(apiKey: 'key');
final appfit = AppFit(configuration: configuration);
appfit.trackEvent('event');

Constructors

AppFit({required AppFitConfiguration configuration})
Initializes the AppFit SDK with the provided configuration.

Properties

configuration AppFitConfiguration
The configuration for the AppFit SDK.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
track(AppFitEvent event) → void
Tracks an event with the provided event.
trackEvent(String eventName, {Map<String, String>? eventProperties}) → void
Tracks an event with the provided eventName and eventProperties.

Operators

operator ==(Object other) bool
The equality operator.
inherited