clearSelection method

void clearSelection()

Clears the current selection.

Implementation

void clearSelection() {
  _selectionBase?.dispose();
  _selectionBase = null;
  _selectionExtent?.dispose();
  _selectionExtent = null;
  _anchorSelection = false;
  final vt = _liveEngine;
  if (vt != null) _changeEngine(vt, vt.clearSelection);
  notifyListeners();
}