collapse method

void collapse()

Collapses the selection (removes the highlight)

Implementation

void collapse() {
  if (_state.anchor != null) {
    _state = SelectionState(
      anchor: _state.anchor,
      focus: _state.anchor,
    );
    _rangeCache.clear();
    if (!_suppressNotifications) notifyListeners();
  }
}