moveCursorWordRight method
void
moveCursorWordRight()
Moves cursor past the current word and following spaces.
Implementation
void moveCursorWordRight() {
final graphemes = textAfterCursor.characters.toList();
var index = 0;
while (index < graphemes.length && graphemes[index] != ' ') {
index++;
}
while (index < graphemes.length && graphemes[index] == ' ') {
index++;
}
_cursorPosition += graphemes.take(index).join().length;
}