AsyncSnapshotStreamSignal<T> class abstract interface

Interface for a signal that tracks a Stream's state.

Provides methods to update the Stream being tracked.

Implemented types

Properties

connectionState → ConnectionState
Current state of connection to the asynchronous computation.
finalinherited
data → T?
The latest data received by the asynchronous computation.
finalinherited
error → Object?
The latest error object received by the asynchronous computation.
finalinherited
hasData → bool
Returns whether this snapshot contains a non-null data value.
no setterinherited
hasError → bool
Returns whether this snapshot contains a non-null error value.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
requireData → T
Returns latest data received, failing if there is no data.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
The latest stack trace object received by the asynchronous computation.
finalinherited

Methods

inState(ConnectionState state) → AsyncSnapshot<T>
Returns a snapshot like this one, but in the specified state.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setStream(Stream<T>? stream) → void
Updates the Stream being tracked.
toString() → String
A string representation of this object.
inherited

Operators

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