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:

Implementation

typedef AsyncListenableBuilder<T extends Listenable> = Widget Function(
  BuildContext context,
  Widget? child,
  AsyncSnapshot<T> listenableSnapshot,
);