replaceSelectionOrInsertDocumentCommand method

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

Implementation

TextCommandResult replaceSelectionOrInsertDocumentCommand(
  TextDocument document, {
  List<String> replacement = const <String>[],
  bool replaceSelection = true,
}) {
  return textInsertGraphemes(
    document: document,
    state: this,
    graphemes: replacement,
    replaceSelection: replaceSelection,
  );
}