RxBatch class
Coordinates batched reactive mutations and glitch-free diamond propagation.
Exposed publicly via Rx.batch<T>(T Function() fn).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isBatching → bool
-
Whether a reactive batch is currently active.
no setter
Static Methods
-
flushIfNotBatching(
) → void - Flush immediately if no explicit batch is currently open.
-
reset(
) → void -
Reset batch state (called by
Zen.reset()). -
run<
T> (T fn()) → T -
Execute
fninside a reactive batch. -
scheduleComputed(
RxBatchableComputed computed) → void - Queue a dirty listened RxBatchableComputed for pull evaluation on flush.
-
scheduleNotifier(
RxBatchableNotifier notifier) → void - Queue a reactive notifier to fire listeners when the current batch flushes.