Operation constructor

const Operation(
  1. OperationType type, {
  2. required int sourceStart,
  3. required int sourceEnd,
  4. required int targetStart,
  5. required int targetEnd,
})

Constructs a new operation.

Implementation

const Operation(
  this.type, {
  required this.sourceStart,
  required this.sourceEnd,
  required this.targetStart,
  required this.targetEnd,
});