RedlineEntry class
A single line entry in a redline diff.
oldLineNo/newLineNo are 1-based and null when the line is absent on that side (added has no old line; removed has no new line). text is the new line for added/changed/unchanged, and the old line for removed — so a renderer always has something to show.
Example:
const RedlineEntry(RedlineOp.added, null, 3, 'inserted');
Constructors
- RedlineEntry(RedlineOp op, int? oldLineNo, int? newLineNo, String text)
-
Creates an immutable redline entry.
Audited: 2026-06-12 11:26 EDT
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- newLineNo → int?
-
1-based line number in the new text, or null if the line was removed.
final
- oldLineNo → int?
-
1-based line number in the old text, or null if the line was added.
final
- op → RedlineOp
-
What happened to this line.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
The line content shown to the reader (new side, or old side if removed).
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