ListNotifier class
The core notification engine for Pillar S (State). Maintained with original names to ensure multirepo compatibility.
- Inheritance
-
- Object
- Listenable
- ListNotifier
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
no setter
- listenersLength → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
SintStateUpdate listener) → Disposer -
Register a closure to be called when the object notifies its listeners.
override
-
addListenerId(
Object? key, SintStateUpdate listener) → Disposer -
containsListener(
SintStateUpdate listener) → bool -
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
) → void -
refreshGroup(
Object id) → void -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
override
-
removeListenerId(
Object id, VoidCallback listener) → void -
reportAdd(
VoidCallback disposer) → void -
reportRead(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isBatching → bool
-
Whether execution is currently inside a batch block.
no setter
- isFlushingBatch → bool
-
Whether a completed batch block is currently flushing queued listeners.
no setter
Static Methods
-
batch<
T> (T action()) → T -
Runs
actionwhile coalescing synchronous ListNotifier notifications. -
enqueueBatchedComputed(
VoidCallback flushCallback) → void -
Internal hook for
Computed<T>to coalesce recomputations during a batch flush.