replaceSelection method

void replaceSelection(
  1. String text
)

Replaces the current selection, or inserts at the cursor if collapsed.

Implementation

void replaceSelection(String text) {
  _model.replaceSelection(text);
  notifyListeners();
}