AsyncCellHandle<T> class
A mutable input cell on the async graph (the synchronous input layer of AsyncContext). Reads inside an async compute/effect register a dependency edge; writes invalidate dependents.
- Implemented types
Constructors
- AsyncCellHandle(AsyncContext _ctx, T initialValue)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Whether this cell has been disposed. A disposed cell reads as a
DisposedNodeError.
no setter
- peek → T
-
Read the value without registering a dependency (non-reactive).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Tear this cell out of the graph. See AsyncContext.disposeNode.
-
get(
) → T - Read the value (synchronous). Registers a dependency when called inside an async compute/effect.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
T newValue) → void -
Set a new value (synchronous). If
newValue != _value, dependent async slots/effects are scheduled for rerun. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited