showResults method
从 buildSuggestions 返回的建议过渡到 buildResults 返回的 query 结果。
如果用户点击 buildSuggestions 提供的建议,屏幕通常应过渡到显示建议查询的搜索结果的 页面。可以通过调用此方法触发此转换。
另请参阅:
- showSuggestions,以再次显示搜索建议。
Implementation
void showResults(BuildContext context, [bool removeFocus = true]) {
if (removeFocus) {
_focusNode?.unfocus();
}
_currentBody = _SearchBody.results;
}