FieldBlocErrorBuilder typedef

FieldBlocErrorBuilder = String? Function(BuildContext context, Object error)

This function take the context and the FieldBlocState.error and must return a String error to display in the widget when has an error or null if you don't want to display the error. By default is FieldBlocBuilder.defaultErrorBuilder.

Implementation

typedef FieldBlocErrorBuilder = String? Function(
    BuildContext context, Object error);