selectAll method

  1. @override
void selectAll(
  1. [SelectionChangedCause? cause]
)
override

Set the current selection to contain the entire text value.

If and only if cause is SelectionChangedCause.toolbar, the selection will be scrolled into view.

Implementation

@override
void selectAll([SelectionChangedCause? cause]) {
  _clearSelection();
  _selectable?.dispatchSelectionEvent(const SelectAllSelectionEvent());
  if (cause == SelectionChangedCause.toolbar) {
    _showToolbar();
    _showHandles();
  }
  _updateSelectedContentIfNeeded();
}