PdfTextDiffHunk class

A contiguous change - one or more adjacent non-PdfTextDiffKind.equal segments, the unit a diff navigator steps through. A pure replace is a delete next to an insert, so a hunk carries both before and after tokens.

Constructors

PdfTextDiffHunk({required List<PdfTextToken> before, required List<PdfTextToken> after})
const

Properties

after List<PdfTextToken>
Added/replacing tokens, on the after page.
final
before List<PdfTextToken>
Removed/replaced tokens, on the before page.
final
hashCode int
The hash code for this object.
no setterinherited
isDeletion bool
no setter
isInsertion bool
no setter
runtimeType Type
A representation of the runtime type of the object.
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.
inherited

Operators

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