simple_async_builder library
Classes
-
AsyncFutureBuilder<
T> -
Widget that renders
waiting
widget while waiting forfuture
to complete. When it happensbuilder
is used to create widget based on value returned fromfuture
. If anyfuture
completed with error thenerror
function 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.