DocxNode class abstract

Abstract base class for all nodes in the document AST.

The AST (Abstract Syntax Tree) represents the document structure in a format-agnostic way, allowing export to multiple formats (DOCX, HTML, PDF, etc.).

Node Hierarchy

DocxNode (base)
├── DocxInline (inline content like text, images)
│   ├── DocxText
│   ├── DocxLineBreak
│   └── DocxInlineImage
├── DocxBlock (block-level content)
│   ├── DocxParagraph
│   ├── DocxTable
│   ├── DocxImage
│   └── DocxList
└── DocxSection (page sections with headers/footers)
Implementers

Constructors

DocxNode({String? id})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
id String?
Unique identifier for this node (for debugging/tracking).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

accept(DocxVisitor visitor) → void
Accepts a visitor for traversing the AST.
buildXml(XmlBuilder builder) → void
Converts this node to its XML representation.
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