TextNode class

Text content node

Represents raw text content without any HTML tags

Inheritance

Constructors

TextNode(String text, {ComputedStyle? style})

Properties

attributes → Map<String, String>
HTML attributes (id, class, etc.)
finalinherited
children → List<UDTNode>
Child nodes
finalinherited
classList → List<String>
Get CSS class list
no setterinherited
cssId → String?
Get CSS ID
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique identifier for this node (for hit testing, selection)
finalinherited
isBlock → bool
Check if this node is block-level
no setterinherited
isInline → bool
Check if this node is inline
no setterinherited
layoutRect ↔ Rect?
Layout result - position relative to parent Set by Layout Engine after performLayout()
getter/setter pairinherited
parent ↔ UDTNode?
Parent node (null for root)
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style ↔ ComputedStyle
Computed style (resolved from CSS cascade)
getter/setter pairinherited
tagName → String?
Original HTML tag name (if from HTML)
finalinherited
text → String
The text content
final
textContent → String
Get all text content recursively
no setteroverride
type → NodeType
Node type
finalinherited

Methods

appendChild(UDTNode child) → void
Add a child node
inherited
findById(String targetId) → UDTNode?
Find node by ID
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeChild(UDTNode child) → bool
Remove a child node
inherited
toString() → String
A string representation of this object.
override
traverse(void visitor(UDTNode child)) → void
Traverse the tree (pre-order)
inherited

Operators

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