HashlineInsert class final

Insert text at cursor. replacement marks payload lines lowered from a SWAP N.=M: hunk (new content for the deleted range).

Inheritance

Constructors

HashlineInsert({required HashlineCursor cursor, required String text, bool replacement = false, required int lineNum, required int index})
const

Properties

cursor → HashlineCursor
Where the line should land.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
Stable parse order, used to sequence edits that share a line.
finalinherited
lineNum → int
1-indexed patch line the edit was parsed from (groups one hunk).
finalinherited
replacement → bool
Whether this insert is replacement payload for a SWAP hunk.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
The literal line content (without its + body-row sigil).
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.
inherited