HujBaseAnalyticsProvider class
Base class for analytics providers like Firebase, Console, etc.
Provides default no-op implementations so subclasses can override only what they need.
Registered via AnalyticsServiceRouter.registerProvider.
- Mixed-in types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialized → bool
-
Check if initialized
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkInitializationConditions(
) → bool -
Override this method in the class to provide initialization conditions
Return true if all required conditions are met
inherited
-
checkInitialized(
String componentName) → bool -
Check initialization state
Returns true if initialized, false otherwise
inherited
-
initialize(
) → bool -
Try to initialize by checking conditions
Returns true if already initialized or successfully initialized now
inherited
-
markInitialized(
) → void -
Force mark as initialized (use with caution)
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setUserId(
String userId) → void -
toString(
) → String -
A string representation of this object.
inherited
-
trackEvent(
String eventName, Map< String, Object> ? params) → void -
trackException(
String type, String message, {Map< String, dynamic> ? context}) → void -
trackTiming(
String name, Duration elapsed, Map< String, dynamic> params) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited