LoggingInterceptor<T extends DataGridRow> class

Example interceptor that logs all events and state changes.

Inheritance

Constructors

LoggingInterceptor({bool logEvents = true, bool logStateChanges = true, bool logErrors = true})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
logErrors bool
final
logEvents bool
final
logStateChanges bool
final
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
onAfterStateUpdate(DataGridState<T> newState, DataGridState<T> oldState, DataGridEvent? event) → void
Called after state has been updated.
override
onBeforeEvent(DataGridEvent event, DataGridState<T> currentState) DataGridEvent?
Called before an event is processed.
override
onBeforeStateUpdate(DataGridState<T> newState, DataGridState<T> oldState, DataGridEvent? event) DataGridState<T>?
Called after event is processed but before state is updated.
inherited
onError(Object error, StackTrace stackTrace, DataGridEvent? event) → void
Called when an error occurs during event processing.
override
toString() String
A string representation of this object.
inherited

Operators

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