Diff constructor

Diff(
  1. Operation operation,
  2. String text
)

Constructor. Initializes the diff with the provided values. operation is one of Operation.insert, Operation.delete or Operation.equal. text is the text being applied.

Implementation

Diff(this.operation, this.text);