AsyncScopeModel class abstract interface AsyncScope
The read-only model of an asynchronous scope: its AsyncScopeState, and a notification whenever that state changes.
This is what AsyncScopeElementBase.model returns, and the model type the
family fixes one layer down — ScopeModelCore<W, E, AsyncScopeModel> — so a
scope written on the Core layer names it. AsyncScopeCore itself takes two
type arguments, the widget and its element. There is nothing to implement: the scope makes the one
instance there is, and the interface exists so that nothing outside can
write to it.
- Implemented types
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → AsyncScopeState
-
The current state.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object notifies its listeners.
inherited
-
listen(
void callback()) → ListenableSubscription -
Available on Listenable, provided by the ListenableListenExtension extension
Listen to the Listenable. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
inherited
-
select<
T extends Object?> (T selector(L listenable), void listener(L listenable, T value), {bool compare(T previous, T current)?}) → ListenableSelectSubscription< T> -
Available on L, provided by the ListenableSelectExtension extension
Listen to a specific value of the Listenable. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited