clearSelection method

void clearSelection()

Removes the ongoing selection for this SelectableRegion.

Implementation

void clearSelection() {
  _finalizeSelection();
  _directionalHorizontalBaseline = null;
  _adjustingSelectionEnd = null;
  _selectable?.dispatchSelectionEvent(const ClearSelectionEvent());
  _updateSelectedContentIfNeeded();
}