moveSelectionsHorizontally method

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

Moves every active cursor left or right by one grapheme.

Implementation

bool moveSelectionsHorizontally({required bool forward}) {
  return _applyMappedEnds(
    forward: forward,
    mapEnd: (offset, _) => (offset + (forward ? 1 : -1)).clamp(0, length),
  );
}