LevitReactiveChange<T> class
Represents a discrete change in a reactive variable's state.
LevitReactiveChange is passed to middlewares to allow inspection, logging, or modification of the state transition.
Constructors
- LevitReactiveChange({required DateTime timestamp, required Type valueType, required T oldValue, required T newValue, StackTrace? stackTrace, void restore(dynamic value)?})
- Creates a record of a state change.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPropagationStopped → bool
-
Returns
trueif a middleware has stopped the propagation of this change.no setter - newValue → T
-
The proposed new state of the variable.
final
- oldValue → T
-
The state of the variable before the change.
final
- restore → void Function(dynamic value)?
-
A function that restores the variable to its previous state.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
The stack trace at the point of mutation (if enabled).
final
- timestamp → DateTime
-
The timestamp when the change was initiated.
final
- valueType → Type
-
The runtime type of the value being changed.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stopPropagation(
) → void - Prevents subsequent middlewares from processing this specific change.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited