addReplacement abstract method

void addReplacement(
  1. SourceRange range,
  2. void buildEdit(
    1. EditBuilder builder
    )
)

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);