simple_async_builder library

Classes

AsyncFutureBuilder<T>
Widget that renders waiting widget while waiting for future to complete. When it happens builder is used to create widget based on value returned from future. If any future completed with error then error 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.