startSelection method
void
startSelection(
- int col,
- int row, {
- SelectionMode mode = SelectionMode.character,
- SelectionRegion? region,
Begins a new selection starting at (col, row).
If region is provided, selection coordinates are clamped and confined to that region.
Implementation
void startSelection(
int col,
int row, {
SelectionMode mode = SelectionMode.character,
SelectionRegion? region,
}) {
_mode = mode;
_region = region;
_anchor = _clampPoint(col, row, region);
_focus = null;
_wordAnchor = null;
notifyListeners();
}