clearSelection method

ViewportModel clearSelection()

Clears the current selection.

Implementation

ViewportModel clearSelection() {
  return copyWith(selectionStart: null, selectionEnd: null);
}