LevitReactiveChange<T> class

Represents a state transition in a reactive variable.

Captured by LevitReactiveMiddleware to support logging, debugging, and undo/redo operations.

Constructors

LevitReactiveChange({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 true if a middleware has stopped the propagation of this change.
no setter
newValue → T
The value after modification.
final
oldValue → T
The value before modification.
final
restore → void Function(dynamic value)?
A callback to restore the variable to this state.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
The stack trace at the moment of change, if enabled.
final
timestamp DateTime
The timestamp of the change, computed lazily on first access.
no setter
valueType Type
The runtime type of the value held.
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