add method

void add(
  1. SourceEdit edit, {
  2. bool insertBeforeExisting = false,
})

Adds the given Edit to the list.

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 add(SourceEdit edit, {bool insertBeforeExisting = false}) =>
    addEditForSource(this, edit, insertBeforeExisting: insertBeforeExisting);