CommandInterceptor class abstract

Interceptor interface for cross-cutting observability, telemetry, and debugging.

Implementers

Constructors

CommandInterceptor()
Base const constructor.
const

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
onAfterExecute(Command command, CommandIntent intent) → void
Invoked after a command finishes execution (successful or cancelled).
onBeforeExecute(Command command, CommandIntent intent) → void
Invoked immediately before a command starts execution.
onEffectEmitted(dynamic effect) → void
Invoked whenever a side effect is emitted.
onError(Command command, CommandIntent intent, Object error, StackTrace stackTrace) → void
Invoked if a command execution throws an unhandled error.
onStateChanged(dynamic oldState, dynamic newState) → void
Invoked whenever the commander's state is updated.
toString() → String
A string representation of this object.
inherited

Operators

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