updateText method
Replace all text
Implementation
void updateText(String newText) {
_text = newText;
_selection = TextSelection.collapsed(offset: newText.length);
_reparse();
notifyListeners();
}
Replace all text
void updateText(String newText) {
_text = newText;
_selection = TextSelection.collapsed(offset: newText.length);
_reparse();
notifyListeners();
}