query property
The current query string shown in the AppBar.
The user manipulates this string via the keyboard.
If the user taps on a suggestion provided by buildSuggestions this string should be updated to that suggestion via the setter.
Implementation
String get query => _queryTextController.text;
Changes the current query string.
Setting the query string programmatically moves the cursor to the end of the text field.
Implementation
set query(String value) {
_queryTextController.value = TextEditingValue(
text: value,
selection: TextSelection.collapsed(offset: value.length),
);
}