Element class

An HTML element with a tag, attributes, and children.

Inheritance

Constructors

Element(String tag, {Map<String, dynamic> attributes = const {}, Map<String, Function> events = const {}, List<Node> children = const [], bool selfClosing = false})

Properties

attributes Map<String, dynamic>
final
children List<Node>
final
events Map<String, Function>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selfClosing bool
final
tag String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toHtml() String
Renders the node to an HTML string.
override
toString() String
A string representation of this object.
inherited

Operators

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