moveCursorLeft method

void moveCursorLeft()

Moves the collapsed cursor left by one grapheme cluster.

Implementation

void moveCursorLeft() {
  if (!selectionWithinText) return;
  final offset = _previousGraphemeBoundary(text, selection.extentOffset);
  selection = TextSelection.collapsed(offset: offset);
}