AsyncListenableBuilder<T extends Listenable> typedef
AsyncListenableBuilder<T extends Listenable> =
Widget Function(BuildContext context, Widget? child, AsyncSnapshot<T> listenableSnapshot)
Builds a Widget when given a concrete value of a AsyncSnapshot<T> where
T
is a Listenable
.
If the child
parameter provided to the AsyncListenableBuilder is not
null, the same child
widget is passed back to this ListenableFutureBuilder
and should typically be incorporated in the returned widget tree.
See also:
- ListenableFutureBuilder, a widget which invokes this builder each time after the initial future completes and a value is emited on the Listener.
Implementation
typedef AsyncListenableBuilder<T extends Listenable> = Widget Function(
BuildContext context,
Widget? child,
AsyncSnapshot<T> listenableSnapshot,
);