Patch constructor

Patch([
  1. List<Diff>? diffs,
  2. int start1 = 0,
  3. int start2 = 0,
  4. int length1 = 0,
  5. int length2 = 0,
])

Constructor. Initializes with an empty list of diffs.

Implementation

Patch([List<Diff>? diffs, this.start1 = 0, this.start2 = 0,
  this.length1 = 0, this.length2 = 0]): this.diffs = diffs ?? [];