CodeBlockNode class

Tag: MarkdownTag.pre

An indented code block is composed of one or more indented chunks separated by blank lines A code fence is a sequence of at least three consecutive backtick characters (`) or tildes (~)

Inheritance

Constructors

CodeBlockNode(Element element, PreConfig preConfig, WidgetVisitor visitor)

Properties

children List<SpanNode>
finalinherited
childrenSpan TextSpan
no setterinherited
content String
no setter
element → Element
final
hashCode int
The hash code for this object.
no setterinherited
parent SpanNode?
no setterinherited
parentStyle TextStyle?
no setterinherited
preConfig PreConfig
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TextStyle
getter/setter pairinherited-setteroverride-getter
visitor WidgetVisitor
final

Methods

accept(SpanNode? node) → void
use accept to add a child
inherited
build() InlineSpan
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAccepted(SpanNode parent) → void
when this node was accepted by it's parent, onAccepted will be triggered
inherited
toString() String
A string representation of this object.
inherited

Operators

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