HtmlElement class
A named tag that can contain other nodes.
- Implemented types
Constructors
-
HtmlElement(String tag, List<
HtmlNode> ? children, {Map<String, String> ? attributes}) - Instantiates a tag HtmlElement with children.
- HtmlElement.empty(String tag)
- Instantiates an empty, self-closing tag HtmlElement.
- HtmlElement.text(String tag, String text)
- Instantiates a tag HtmlElement with a single HtmlText child.
- HtmlElement.withTag(String tag)
- Instantiates a tag HtmlElement with no children.
Properties
-
attributes
→ Map<
String, String> -
final
-
children
→ List<
HtmlNode> ? -
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(
HtmlNodeVisitor 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