AnalyticsMiddleware class

Analytics middleware for tracking state actions

Inheritance

Constructors

AnalyticsMiddleware({bool trackActions = true, bool trackErrors = true, Map<String, dynamic> customParameters(Action)?})

Properties

customParameters Map<String, dynamic> Function(Action)?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trackActions bool
final
trackErrors bool
final

Methods

after(Action action, dynamic result) Future<void>
Called after successful action execution
override
before(Action action) Future<Action?>
Called before action execution
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(Object error, StackTrace stackTrace, Action action) Future<void>
Called when action execution fails
override
toString() String
A string representation of this object.
inherited

Operators

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