showSuggestions method
Transition from showing the results returned by buildResults to showing the suggestions returned by buildSuggestions.
Calling this method will also put the input focus back into the search field of the AppBar.
If the results are currently shown this method can be used to go back to showing the search suggestions.
See also:
- showResults to show the search results.
Implementation
void showSuggestions(BuildContext context) {
FocusScope.of(context).requestFocus(_focusNode);
_currentBody = _SearchBody.suggestions;
}