StateProjectionMirror class

Tracks which slots are dirty and produces a coalesced flush Delta.

The caller marks slots dirty as the reactive graph invalidates them. At flush, the mirror collects the resolved values and builds a single Delta.next with one DeltaOpSlotValue per dirty slot.

Constructors

StateProjectionMirror()

Properties

baseEpoch Epoch
The current base epoch.
no setter
dirtyNodes List<int>
All dirty node ids.
no setter
hashCode Epoch
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

flush() Delta
Flush: produce a Delta with one DeltaOpSlotValue per resolved slot. Slots still dirty at flush are emitted as DeltaOpInvalidate (the mirror-lazy path).
isDirty(int node) bool
Whether node is currently dirty.
markDirty(int node) → void
Mark slot node as dirty.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(int node, IpcValue value) → void
Resolve a dirty slot's value (called by the graph at flush time).
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited