clearSelection method
void
clearSelection()
Clears the current selection.
Implementation
void clearSelection() {
if (_anchor == null && _focus == null && _region == null) return;
_anchor = null;
_focus = null;
_wordAnchor = null;
_region = null;
notifyListeners();
}