setSearchText method
Sets the search text programmatically.
Implementation
void setSearchText(String text) {
_textController.text = text;
_textController.selection = TextSelection.fromPosition(
TextPosition(offset: text.length),
);
}
Sets the search text programmatically.
void setSearchText(String text) {
_textController.text = text;
_textController.selection = TextSelection.fromPosition(
TextPosition(offset: text.length),
);
}