addInsertion abstract method

void addInsertion(
  1. int offset,
  2. void buildEdit(
    1. EditBuilder builder
    )
)

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

void addInsertion(int offset, void Function(EditBuilder builder) buildEdit);