updateText method
Replace all text
Implementation
void updateText(String newText) {
_text = newText;
_cursorOffset = newText.length;
_selection = null;
_reparse();
notifyListeners();
}
Replace all text
void updateText(String newText) {
_text = newText;
_cursorOffset = newText.length;
_selection = null;
_reparse();
notifyListeners();
}