query property
String
get
query
Implementation
String get query => _queryTextController.text;
set
query
(String value)
更改当前查询字符串。
以编程方式设置查询字符串会将光标移动到文本字段的末尾。
Implementation
set query(String value) {
_queryTextController.text = value;
if (_queryTextController.text.isNotEmpty) {
_queryTextController.selection = TextSelection.fromPosition(
TextPosition(offset: _queryTextController.text.length));
}
}