HeaderNode class

Represents a header node (H1-H6)

Inheritance

Constructors

HeaderNode({required int level, required String content, List<MarkdownNode>? children})
Creates a new header node
const

Properties

children → List<MarkdownNode>?
Parsed inline children (bold, italic, links, etc.) If null, content should be used as plain text
final
content → String
The header content (plain text, used as fallback if children is null)
final
hashCode → int
The hash code for this object.
no setterinherited
level → int
The header level (1-6)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
The type identifier for this node
no setteroverride

Methods

copyWith({int? level, String? content, List<MarkdownNode>? children}) → HeaderNode
Creates a copy of this node
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this node to a JSON representation
override
toString() → String
A string representation of this object.
override

Operators

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