UiViewAdapter class abstract
Data source port the host implements to feed the viewer.
The viewer never talks to the host's state store directly; it only sees
snapshots materialised through this adapter. fetch gives the one-shot
initial frame, watch is the live subscription.
Constructors
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
-
fetch(
String target) → Future< UiTargetSnapshot> -
Return the current snapshot of
target. Throw if the target is unknown; the controller will surface the error as ViewStatus.error. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
watch(
String target) → Stream< UiTargetUpdate> -
Observe updates to
target. A new UiTargetUpdate is emitted every time the underlying content changes. Stream errors are isolated by the controller which will re-subscribe with exponential backoff.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited