moveCursorForward method
move the cursor forward.
Don't hardcode the logic here. For example, final position = node.selectable?.moveForward(selection.startIndex); if (position == null) { ... // move to the previous node} else { ... // move to the position }
Implementation
void moveCursorForward([
SelectionMoveRange range = SelectionMoveRange.character,
]) {
moveCursor(SelectionMoveDirection.forward, range);
}