ErrorBuilder<T> typedef

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

This function takes a context and an error and returns a widget

Used when bloc sets an error and an error widget should be built to show that error

Implementation

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