PdfTextToken class

A whitespace-delimited token of page text, with the page-space box it covers - the unit a PdfTextDiff aligns and the bounds a viewer highlights when it flags the token as changed.

Constructors

PdfTextToken({required String text, required int start, required int end, required PdfRect? bounds})
const

Properties

bounds → PdfRect?
The axis-aligned page-space box covering the token, or null when the page exposed no geometry for it (rare - empty/degenerate runs).
final
end int
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start int
Half-open [start, end) range into the owning PdfPageText.text.
final
text String
The token's characters (no surrounding whitespace).
final

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