FileDiff constructor

const FileDiff({
  1. required String? oldPath,
  2. required String? newPath,
  3. required FileDiffKind kind,
  4. required List<DiffHunk> hunks,
  5. bool isBinary = false,
  6. List<String>? oldLines,
  7. List<String>? newLines,
  8. String? identity,
  9. int revision = 0,
  10. String? language,
  11. String? oldText,
  12. String? newText,
  13. String? oldObjectId,
  14. String? newObjectId,
  15. String? oldMode,
  16. String? newMode,
  17. String patchLineEnding = '\n',
})

The changes to one file. Only diffTexts fills in oldLines and newLines.

Implementation

const FileDiff({
  required this.oldPath,
  required this.newPath,
  required this.kind,
  required this.hunks,
  this.isBinary = false,
  this.oldLines,
  this.newLines,
  this.identity,
  this.revision = 0,
  this.language,
  this.oldText,
  this.newText,
  this.oldObjectId,
  this.newObjectId,
  this.oldMode,
  this.newMode,
  this.patchLineEnding = '\n',
});