Element class

A named tag that can contain other nodes.

Implemented types

Constructors

Element(String tag, [Map<String, String>? attributes, List<Node> children = const []])

Properties

attributes Map<String, String>
Attributes on this Element.
final
children List<Node>
All children of this Element, it might be nested.
final
hashCode int
The hash code for this object.
no setterinherited
isChildrenNullOrEmpty bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String
Tag name.
final
textContent String
no setteroverride

Methods

accept(NodeVisitor visitor) → void
override
appendChild(Node child) → void
Appends a new child to children.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
updateAttributes(String name, String value) String
Update attributes with name and value if both are not null. Returns attributes value by querying name even if attributes is not updated.

Operators

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