NeomFlowTracker class
Tracks user flow durations and screen activity for analytics.
Records flow start/end timestamps to measure how long key processes take (registration, onboarding, login) and tracks screen visits to understand what users do in the app.
Usage:
NeomFlowTracker.startFlow('registration');
// ... user completes registration ...
NeomFlowTracker.endFlow('registration');
NeomFlowTracker.trackScreen('homePage');
Constructors
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
-
endFlow(
String flowName, {bool success = true}) → void - Ends a tracked flow and records total duration.
-
flowStep(
String flowName, String stepName) → void - Marks a step within an active flow (e.g. 'onboarding/step_locale').
-
flushAll(
) → Future< void> - Force-flushes all pending events (call on app lifecycle events).
-
setUserId(
String userId) → void - Sets the current user ID for attributing flow events.
-
startFlow(
String flowName, {Map< String, String> ? metadata}) → void - Starts tracking a named flow (e.g. 'registration', 'onboarding', 'login').
-
trackScreen(
String screenName) → void - Records a screen visit.