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}) - Creates a batch container for the current execution.
-
LevitReactiveBatch.fromChanges(List<
LevitReactiveChange> changes) -
Legacy factory for constructing a batch from a list of changes.
factory
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 proposed new state of the variable.
no setteroverride
- oldValue → void
-
The state of the variable before the change.
no setteroverride
-
reactiveVariables
→ List<
LxReactive> -
Returns just the list of reactive variables involved in the batch.
no setter
- restore → void Function(dynamic value)?
-
A function that restores the variable to its previous state.
no setteroverride
- 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).
no setteroverride
- timestamp → DateTime
-
The timestamp when the change was initiated.
final
- valueType → Type
-
The runtime type of the value being changed.
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