DiffLine class
A class representing a single line in a patch hunk.
Each line in a patch can be an addition, deletion, or context line, and contains information about its position in both the old and new versions.
- Annotations
-
- @immutable
Properties
- content → String
-
Content of the diff line.
final
- contentOffset → int
-
Offset in the original file to the content.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- newLineNumber → int
-
Line number in new file or -1 for deleted line.
final
- numLines → int
-
Number of newline characters in content.
final
- oldLineNumber → int
-
Line number in old file or -1 for added line.
final
- origin → GitDiffLine
-
Type of the line (addition, deletion, or context).
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String - A string representation of this object.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited