SuggestionsBuilder typedef

SuggestionsBuilder = FutureOr<Iterable<Widget>> Function(BuildContext context, SearchController controller)

Signature for a function that creates a Widget to build the suggestion list based on the input in the search bar.

The controller callback provided to SearchAnchor.suggestionsBuilder can be used to close the search view and control the editable field on the view.

Implementation

typedef SuggestionsBuilder = FutureOr<Iterable<Widget>> Function(BuildContext context, SearchController controller);