moveCursorForward method

void moveCursorForward([
  1. SelectionMoveRange range = SelectionMoveRange.character
])

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);
}