addEdit method

void addEdit(
  1. String file,
  2. int fileStamp,
  3. SourceEdit edit, {
  4. bool insertBeforeExisting = false,
})

Adds edit to the FileEdit for the given file.

If insertBeforeExisting is true, inserts made at the same offset as other edits will be inserted such that they appear before them in the resulting document.

Implementation

void addEdit(String file, int fileStamp, SourceEdit edit,
        {bool insertBeforeExisting = false}) =>
    addEditToSourceChange(this, file, fileStamp, edit,
        insertBeforeExisting: insertBeforeExisting);