moveSelectionsToVisualLineBoundary method

bool moveSelectionsToVisualLineBoundary({
  1. required bool forward,
})

Moves every active cursor to its projected visual-row boundary.

Without soft wrapping, the visual and logical line boundaries are equal.

Implementation

bool moveSelectionsToVisualLineBoundary({required bool forward}) {
  _refreshEditorStateSnapshot();
  _configureTextView();
  return _applyMappedEnds(
    forward: forward,
    mapEnd: (offset, _) =>
        _offsetForVisualLineBoundary(offset, forward: forward),
  );
}