Element class final

An element with attributes and children.

Inheritance

Constructors

Element(String tag, {List<Object?> children = const [], Map<String, Object?> attributes = const {}, String? id, String? classes})
An element.

Properties

attributes → Map<String, Object?>
true writes the bare attribute (disabled); false/null omit it.
final
children → List<HtmlNode>
The child nodes.
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 tag name.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render() → String
The node's HTML.
inherited
toResponse(Request request) → Response
The response for request.
inherited
toString() → String
A string representation of this object.
inherited
writeTo(StringSink out) → void
Writes the node's HTML to out.
override

Operators

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

Constants

voidTags → const Set<String>
The elements without a closing tag.