insertText method
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();
}