MixpanelService class
Service for tracking events with Mixpanel including geolocation
Constructors
- MixpanelService.new({Client? httpClient})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearGeoCache(
) → void - Clear geolocation cache (useful for testing)
-
dispose(
) → void - Dispose of resources
-
getCurrentLocation(
) → Future< Map< String, dynamic> > - Get current geolocation info (useful for debugging)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
trackCliStartup(
{String? version, List< String> ? args}) → Future<void> - Track CLI startup with geolocation
-
trackCommandUsage(
String commandName, {Map< String, dynamic> ? additionalProperties}) → Future<void> - Track command usage with geolocation
-
trackEvent(
String eventName, {Map< String, dynamic> ? properties, Duration timeout = const Duration(seconds: 3), bool includeGeo = true}) → Future<void> - Track an event with Mixpanel including geolocation
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited