edit method

void edit(
  1. int begin,
  2. int end,
  3. Object replacement
)

Edit the original text, replacing text on the range begin and end with the replacement. replacement can be either a string or a NestedPrinter.

Implementation

void edit(int begin, int end, Object replacement) {
  _edits.add(_TextEdit(begin, end, replacement));
}