selectAll method
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) {
userUpdateTextEditingValue(
textEditingValue.copyWith(
selection: TextSelection(
baseOffset: 0, extentOffset: textEditingValue.text.length),
),
cause,
);
if (cause == SelectionChangedCause.toolbar) {
bringIntoView(textEditingValue.selection.extent);
}
}