ErrorBuilder<T> typedef Null safety

ErrorBuilder<T> = T Function(BuildContext context, Object? error)

A callback used to build a valid value from an error.

See also:

Implementation

typedef ErrorBuilder<T> = T Function(BuildContext context, Object? error);