when_async_flutter 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.
-
WhenFutureBuilder<
RESULT_TYPE> - A builder that builds itself based on the latest snapshot from the asynchronous computation.
-
WhenFutureBuilderState<
RESULT_TYPE> -
WhenFutureNotifier<
T> -
A ChangeNotifier that provides snapshot of a future.
The future can be recreated/refreshed by calling update. that uses
futureBuilder
to execute a future asynchronous computation.
Enums
- AsyncSnapshotState
- The state of connection to an asynchronous computation.
Mixins
-
WhenFutureNotifierMixin<
T> - A mixin that provides listenable snapshots of a future 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
snapshot
s in argument which describes state of an asynchronous computation. -
FutureSnapshotListenerCallback<
T> = void Function(FutureSnapshot< T> snapshot) -
Signature of callbacks that have
snapshot
s 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.
-
WhenSnapshotWidgetBuilderCallback<
RESULT_TYPE> = Widget Function(BuildContext context, FutureSnapshot< RESULT_TYPE> snapshot)