DocumentNode class
A single node in the document tree.
Each node has deterministic id, typed content, optional parent/children
for tree structure, and metadata like page number, bounding box, and content layer.
Constructors
-
DocumentNode({required String id, required NodeContent content, PlatformInt64? parent, required Int64List children, required ContentLayer contentLayer, PlatformInt64? page, PlatformInt64? pageEnd, BoundingBox? bbox, required List<
TextAnnotation> annotations, Map<String, String> ? attributes}) -
const
Properties
-
annotations
→ List<
TextAnnotation> -
Inline annotations (formatting, links) on this node's text content.
final
-
attributes
→ Map<
String, String> ? -
Format-specific key-value attributes.
final
- bbox → BoundingBox?
-
Bounding box in document coordinates.
final
- children → Int64List
-
Child node indices in reading order.
final
- content → NodeContent
-
Node content — tagged enum, type-specific data only.
final
- contentLayer → ContentLayer
-
Content layer classification.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Deterministic identifier (hash of node type + text + page + position).
final
- page → PlatformInt64?
-
Page number where this node starts (1-indexed).
final
- pageEnd → PlatformInt64?
-
Page number where this node ends (for multi-page tables/sections).
final
- parent → PlatformInt64?
-
Parent node index (
None= root-level node).final - 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.
override