simple_async_builder library
Classes
-
AsyncFutureBuilder<
T> -
Widget that renders
waitingwidget while waiting forfutureto complete. When it happensbuilderis used to create widget based on value returned fromfuture. If anyfuturecompleted with error thenerrorfunction is called. -
AsyncStreamBuilder<
T>
Functions
-
errorWidget(
{String message = 'Ups, something went wrong...'}) → ErrorBuilderFn
Typedefs
- ErrorBuilderFn = Widget Function(BuildContext context, Object error, StackTrace? stackTrace)
- Signature for a function that builds a widget from an exception.
- ErrorReporterFn = void Function(FlutterErrorDetails details)
- Signature for a function that reports a flutter error, e.g. FlutterError.reportError.
-
ValueBuilderFn<
T> = Widget Function(BuildContext context, T value) - Signature for a function that builds a widget from a value.