replaceSelectionOrInsertCommand method

TextCommandResult replaceSelectionOrInsertCommand(
  1. List<String> graphemes, {
  2. List<String> replacement = const <String>[],
  3. bool replaceSelection = true,
})

Implementation

TextCommandResult replaceSelectionOrInsertCommand(
  List<String> graphemes, {
  List<String> replacement = const <String>[],
  bool replaceSelection = true,
}) {
  return replaceSelectionOrInsert(
    graphemes,
    cursorOffset: cursorOffset,
    selectionBaseOffset: selectionBaseOffset,
    selectionExtentOffset: selectionExtentOffset,
    replacement: replacement,
    replaceSelection: replaceSelection,
  );
}