FileDiff constructor
const
FileDiff({
- required String? oldPath,
- required String? newPath,
- required FileDiffKind kind,
- required List<
DiffHunk> hunks, - bool isBinary = false,
- List<
String> ? oldLines, - List<
String> ? newLines, - String? identity,
- int revision = 0,
- String? language,
- String? oldText,
- String? newText,
- String? oldObjectId,
- String? newObjectId,
- String? oldMode,
- String? newMode,
- 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',
});