delete method
void
delete()
Delete one character after the cursor (Delete behavior)
Implementation
void delete() {
if (_selection != null) {
_deleteSelection();
notifyListeners();
return;
}
if (_cursorOffset < _text.length) {
final before = _text.substring(0, _cursorOffset);
final after = _text.substring(_cursorOffset + 1);
_text = before + after;
_reparse();
notifyListeners();
}
}