Callback returning the widget corresponding to an Error while searching
final Widget Function(Error error)? onError;