setSelectionMode method
Swap the selection mode at runtime; clears any existing selection.
Implementation
void setSelectionMode(EditableSelectionMode mode) {
if (mode == selectionMode) return;
selectionMode = mode;
_selRows.clear();
_selCells.clear();
notifyListeners();
}