replaceSelections method

void replaceSelections(
  1. Iterable<String> replacement, {
  2. String? select,
})

The length of the given array should be the same as the number of active selections. Replaces the content of the selections with the strings in the array. The select argument works the same as in replaceSelection.

Implementation

void replaceSelections(Iterable<String> replacement, {String? select}) {
  callArgs('replaceSelections',
      select != null ? [jsify(replacement), select] : [jsify(replacement)]);
}