AsyncWidgetBuilder<T> typedef

Widget AsyncWidgetBuilder (BuildContext context, AsyncSnapshot<T> snapshot)

Signature for strategies that build widgets based on asynchronous interaction.

See also:

  • StreamBuilder, which delegates to an AsyncWidgetBuilder to build itself based on a snapshot from interacting with a Stream.
  • FutureBuilder, which delegates to an AsyncWidgetBuilder to build itself based on a snapshot from interacting with a Future.