CodeBlockNode class

Represents a code block node

Inheritance

Constructors

CodeBlockNode({required String code, String? language, String fence = '```', String? info})
Creates a new code block node
const

Properties

code → String
The code content
final
fence → String
The fence marker used for this code block.
final
hashCode → int
The hash code for this object.
no setterinherited
info → String?
Full code fence info string, including the language.
final
language → String?
The programming language (optional)
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({String? code, String? language, String? fence, String? info}) → CodeBlockNode
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