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})

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render() → String
inherited
toResponse(Request request) → Response
inherited
toString() → String
A string representation of this object.
inherited
writeTo(StringSink out) → void
override

Operators

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

Constants

voidTags → const Set<String>