ErrorBuilder<T> typedef
ErrorBuilder<T> =
T Function(BuildContext context, Object? error)
A callback used to build a valid value from an error.
See also:
- StreamProvider and FutureProvider, which both uses ErrorBuilder to
handle respectively
Stream.catchError
andFuture.catch
.
Implementation
typedef ErrorBuilder<T> = T Function(BuildContext context, Object? error);