DiffLine constructor

const DiffLine(
  1. DiffLineKind kind,
  2. String text, {
  3. int? oldNumber,
  4. int? newNumber,
  5. bool noNewlineAtEnd = false,
  6. String sourceLineEnding = '\n',
})

A line of kind with text. Context lines have both numbers, removed lines only oldNumber and added lines only newNumber.

Implementation

const DiffLine(
  this.kind,
  this.text, {
  this.oldNumber,
  this.newNumber,
  this.noNewlineAtEnd = false,
  this.sourceLineEnding = '\n',
});