clearSelection method

void clearSelection()

Clears the selection and notifies listeners.

Implementation

void clearSelection() {
  if (_selectionStart == null && _selectionEnd == null) return;
  _selectionStart = null;
  _selectionEnd = null;
  _selecting = false;
  _notifyListeners();
}