buildSuggestions abstract method Null safety
- BuildContext context
Suggestions shown in the body of the search page while the user types a query into the search field.
The delegate method is called whenever the content of query changes. The suggestions should be based on the current query string. If the query string is empty, it is good practice to show suggested queries based on past queries or the current context.
Usually, this method will return a ListView with one ListTile per suggestion. When ListTile.onTap is called, query should be updated with the corresponding suggestion and the results page should be shown by calling showResults.
Widget buildSuggestions(BuildContext context);