HtmlElement class final

One semantic HTML element.

Inheritance

Constructors

HtmlElement(String tag, {Map<String, String?> attributes = const <String, String?>{}, List<HtmlNode> children = const <HtmlNode>[]})
Creates an element.
const

Properties

attributes → Map<String, String?>
Attribute values. A null value renders a boolean attribute.
final
children → List<HtmlNode>
Child nodes in document order.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tag → String
The HTML tag name.
final

Methods

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