StateAnalyticsService class
Tracks state link usage via Firestore.
Counters live at state_usage/{stateId}.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
recordComplete(
String stateId) → Future< void> - Increment the completion counter.
-
recordEmotion(
String stateId, String emoji) → Future< void> - Record an emotion response from the afterglow screen.
-
recordOpen(
String stateId) → Future< void> - Increment the total + daily open counter.
-
recordRef(
String stateId, String ref) → Future< void> - Record the referral source (from ?ref= query parameter).
- Record a share action.
-
recordStart(
String stateId) → Future< void> - Increment the start counter (user tapped "Begin").
-
totalUsage(
String stateId) → Future< int> - Read the total usage count (for social proof).