LevitReactiveBatch class
A collection of LevitReactiveChanges captured during a batch operation.
Implements LevitReactiveChange to allow composite observation of multiple simultaneous state transitions.
- Implemented types
-
- LevitReactiveChange<
void>
- LevitReactiveChange<
Constructors
-
LevitReactiveBatch(List<
(LxReactive, LevitReactiveChange)> entries, {int? batchId, DateTime? timestamp}) - Creates a batch container for the current execution.
Properties
- batchId → int
-
A unique identifier for this batch execution.
final
-
changes
→ List<
LevitReactiveChange> -
Returns just the list of state changes from the batch.
no setter
-
entries
→ List<
(LxReactive, LevitReactiveChange)> -
The individual (reactive, change) pairs within this batch.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Returns
trueif the batch contains no changes.no setter - isNotEmpty → bool
-
Returns
trueif the batch contains one or more changes.no setter - isPropagationStopped → bool
-
Returns
trueif a middleware has stopped the propagation of this change.no setteroverride - length → int
-
The number of changes captured in this batch.
no setter
- newValue → void
-
The value after modification.
no setteroverride
- oldValue → void
-
The value before modification.
no setteroverride
-
reactiveVariables
→ List<
LxReactive> -
Returns just the list of reactive variables involved in the batch.
no setter
- restore → void Function(dynamic value)?
-
A callback to restore the variable to this state.
no setteroverride
- 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.
no setteroverride
- timestamp → DateTime
-
The timestamp of the change, computed lazily on first access.
no setteroverride
- valueType → Type
-
The runtime type of the value held.
no setteroverride
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.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited