DiffLine class final

One line of a hunk.

Constructors

DiffLine(DiffLineKind kind, String text, {int? oldNumber, int? newNumber, bool noNewlineAtEnd = false, String sourceLineEnding = '\n'})
A line of kind with text. Context lines have both numbers, removed lines only oldNumber and added lines only newNumber.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
kind → DiffLineKind
Whether the line was kept, added or removed.
final
newNumber → int?
1-based line number in the new file. null for removed lines.
final
noNewlineAtEnd → bool
Whether this is the last line of its file and has no line break, as marked by \ No newline at end of file.
final
oldNumber → int?
1-based line number in the old file. null for added lines.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceLineEnding → String
Original source terminator, independent of patch transport line endings. noNewlineAtEnd takes precedence for an unterminated final source line.
final
text → String
The line's text, without the leading +, - or space.
final

Methods

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

Operators

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