insertText method

void insertText(
  1. String text, {
  2. bool replaceSelection = true,
  3. bool coalesce = false,
})

Inserts text at the cursor, optionally replacing the selection.

Implementation

void insertText(
  String text, {
  bool replaceSelection = true,
  bool coalesce = false,
}) {
  _model.insertText(
    text,
    replaceSelection: replaceSelection,
    coalesce: coalesce,
  );
  notifyListeners();
}