when_async library

Classes

AsyncSnapshot<T>
An immutable representation of the most recent interaction with an asynchronous computation.
FutureSnapshot<T>
MutableArgument<T>
When<ASYNC_RESULT_TYPE, RESULT_TYPE>
A utitlity that asynchronously creates a single value.
WhenFuture<T>
A utitlity that asynchronously creates a single value from a Future.

Enums

AsyncSnapshotState
The state of connection to an asynchronous computation.

Typedefs

AsyncResultBuilderCallback<ASYNC_RESULT_TYPE> = ASYNC_RESULT_TYPE Function()
AsyncSnapshotListenerCallback<R, SNAPSHOT_TYPE extends AsyncSnapshot<R>> = void Function(SNAPSHOT_TYPE snapshot)
Signature of callbacks that have snapshots in argument which describes state of an asynchronous computation.
FutureSnapshotListenerCallback<T> = void Function(FutureSnapshot<T> snapshot)
Signature of callbacks that have snapshots in argument which describes state of an asynchronous Future computation.
VoidErrorCallback = void Function(Object error, StackTrace stackTrace)
VoidValueCallback<T> = void Function(T value)
Signature of callbacks that have a value in argument and return no data.