addInsertion abstract method

  1. @override
void addInsertion(
  1. int offset,
  2. void buildEdit(
    1. YamlEditBuilder builder
    )
)
override

Add an insertion of text at the given offset. The offset is relative to the original source. The buildEdit function is used to write the text to be inserted. This is fully equivalent to

addReplacement(new SourceRange(offset, 0), buildEdit);

Implementation

@override
void addInsertion(
    int offset, void Function(YamlEditBuilder builder) buildEdit);