errorBuilder property

ErrorBuilder? errorBuilder
final

Called when suggestionsCallback throws an exception.

It is called with the error object, and expected to return a widget to display when an exception is thrown For example:

(BuildContext context, error) {
  return Text('$error');
}

If not specified, the error is shown in ThemeData.errorColor

Implementation

final ErrorBuilder? errorBuilder;