moveSelectionsByWord method
Moves every active cursor to the next or previous word boundary.
Implementation
bool moveSelectionsByWord({required bool forward}) {
_refreshDocumentSnapshot();
return _applyMappedEnds(
forward: forward,
mapEnd: (offset, _) => textMoveByWord(
document: _document,
state: TextOffsetStateSnapshot.collapsed(cursorOffset: offset),
forward: forward,
).cursorOffset,
);
}