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) async {
  if (cause == SelectionChangedCause.toolbar) {
    bringIntoView(textEditingValue.selection.extent);
  }
}