MarkdownRawBlock class

Raw Markdown block preserved for unsupported or custom AST nodes.

Inheritance

Constructors

MarkdownRawBlock({required String id, required String markdown})
Creates a raw Markdown block.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String
Stable block identifier used by selections and transactions.
finalinherited
markdown → String
Original Markdown source for this block.
final
plainText → String
User-visible plain text.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
Block type identifier.
no setteroverride

Methods

copyWith({String? id, String? markdown}) → MarkdownRawBlock
Returns a copy with updated fields.
findBlock(String blockId) → MarkdownBlock?
Finds blockId in this block or its children.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replaceNestedBlock(MarkdownBlock replacement) → MarkdownBlock
Replaces a nested block. Blocks without children return themselves.
inherited
replaceNestedBlockWithBlocks(String blockId, List<MarkdownBlock> replacements) → MarkdownBlock
Replaces a nested block with several blocks.
inherited
toJson() → Map<String, dynamic>
Converts this block to a serializable map.
override
toMarkdown() → String
Serializes this block to Markdown.
override
toString() → String
A string representation of this object.
inherited

Operators

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