MarkdownElement class
Creates a MarkdownElement node.
- Inheritance
-
- Object
- MarkdownNode
- MarkdownElement
Constructors
-
MarkdownElement(String type, SiblingPosition position, {required bool isBlock, List<
MarkdownNode> children = const [], Map<String, String> attributes = const {}}) -
const
-
MarkdownElement.root(List<
MarkdownNode> children)
Properties
-
attributes
→ Map<
String, String> -
final
-
children
→ List<
MarkdownNode> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBlock → bool
-
final
- isRoot → bool
-
no setter
- position → SiblingPosition
-
The position of this node in it's siblings.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
final
Methods
-
accept(
NodeVisitor visitor) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited