ErrorBuilder typedef Null safety

ErrorBuilder = Widget Function(BuildContext context, StateError error)

This function takes a context and a StateError 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 = Widget Function(BuildContext context, StateError error);