DiffHunk class final

A run of changes with its surrounding context, the part of a patch that starts with @@ -oldStart,oldCount +newStart,newCount @@.

Constructors

DiffHunk({required int oldStart, required int oldCount, required int newStart, required int newCount, required List<DiffLine> lines, String section = ''})
A hunk with its line ranges in the old and new files.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
The hunk header as git prints it, for example @@ -12,7 +12,9 @@ class Foo. A count of 1 is left out: @@ -3 +3 @@.
no setter
lines → List<DiffLine>
The hunk's lines, in order.
final
newCount → int
How many new lines the hunk covers: its context and added lines.
final
newStart → int
The first new line the hunk covers, 1-based. With no new lines, the line before the hunk, as in git.
final
oldCount → int
How many old lines the hunk covers: its context and removed lines.
final
oldStart → int
The first old line the hunk covers, 1-based. With no old lines, the line before the hunk, as in git.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
section → String
Text after the closing @@, usually the enclosing function or class.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited