addSimpleReplacement abstract method

void addSimpleReplacement(
  1. SourceRange range,
  2. String text
)

Add a replacement of the text specified by the given range. The range is relative to the original source. The original content will be replaced by the given text. This is fully equivalent to

addReplacement(offset, length, (EditBuilder builder) {
  builder.write(text);
});

Implementation

void addSimpleReplacement(SourceRange range, String text);