updateSelection method

void updateSelection(
  1. TextSelection value, {
  2. ChangeSource source = ChangeSource.remote,
})

Updates selection with specified value.

value and source cannot be null.

Implementation

void updateSelection(TextSelection value,
    {ChangeSource source = ChangeSource.remote}) {
  _updateSelectionSilent(value, source: source);
  notifyListeners();
}