Element<T extends Node> class
abstract
An AST node that can contain other nodes.
- Implemented types
- Implementers
Constructors
Properties
-
attributes
→ Map<
String, String> -
final
-
children
→ List<
T> -
final
- end → SourceLocation
-
The end location of this node.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBlock → bool
-
final
-
markers
→ List<
SourceSpan> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → SourceLocation
-
The start location of this node.
final
- textContent → String
-
no setteroverride
- type → String
-
Such as
headline
final
Methods
-
accept(
NodeVisitor visitor) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
{bool showNull = false, bool showEmpty = false, bool showRuntimeType = false}) → Map< String, dynamic> -
Outputs the attributes as a
Map
.override -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited