updateText method

void updateText(
  1. String newText
)

Replace all text

Implementation

void updateText(String newText) {
  _text = newText;

  _cursorOffset = newText.length;
  _selection = null;
  _reparse();
  notifyListeners();
}