addReplacement abstract method
Add a replacement of text specified by the given range
. The range
is
relative to the original source. The buildEdit
function is used to write
the text that will replace the specified region.
Implementation
void addReplacement(
SourceRange range, void Function(EditBuilder builder) buildEdit);