Element class
A named tag that can contain other nodes.
- Implemented types
Constructors
-
Element(String tag, List<
Node> ? children) -
Instantiates a
tag
Element withchildren
. - Element.empty(String tag)
-
Instantiates an empty, self-closing
tag
Element. - Element.text(String tag, String text)
-
Instantiates a
tag
Element with a single Text child. - Element.withTag(String tag)
-
Instantiates a
tag
Element with no children.
Properties
-
attributes
→ Map<
String, String> -
final
-
children
→ List<
Node> ? -
final
- generatedId ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether this element is self-closing.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag → String
-
final
- textContent → String
-
no setteroverride
Methods
-
accept(
NodeVisitor visitor) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited