ElementNode class

A node of the Satori element DSL.

The typed element models live in nitori_message, and nitori_core cannot depend on it without inverting the package graph. Resources are therefore encoded to and decoded from this minimal structural node, so the element DSL keeps a representation here and nitori_message can convert to and from it when the two need to interoperate.

Constructors

ElementNode(String type, {Map<String, String>? attributes, List<ElementNode>? children, String text = ''})

Properties

attributes → Map<String, String>
Attribute names exactly as they appear on the wire (snake_case).
final
children → List<ElementNode>
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
Raw (unescaped) text carried by this node.
final
type → String
Tag name. Bare text runs are represented as a text node.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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