addReplacement abstract method

  1. @override
void addReplacement(
  1. SourceRange range,
  2. void buildEdit(
    1. YamlEditBuilder builder
    )
)
override

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

@override
void addReplacement(
    SourceRange range, void Function(YamlEditBuilder builder) buildEdit);