ElementNode class final

A component instance after materialization or evaluation.

Constructors

ElementNode({required String typeName, required Map<String, Object?> props, required bool partial, required bool hasDynamicProps, String? statementId})
ElementNode.fromJson(Map<Object?, Object?> json)
An element from lang-core's JSON form (isElementNodeJson); props that are element or AST objects become nodes. A missing hasDynamicProps is true, as in lang-core.
factory

Properties

hasDynamicProps → bool
final
hashCode → int
The hash code for this object.
no setterinherited
jsFields → Map<String, Object?>
lang-core's ElementNode object.
no setter
partial → bool
final
props → Map<String, Object?>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statementId ↔ String?
getter/setter pair
typeName → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
lang-core's JSON of this element, as JSON.stringify writes it.
toString() → String
A string representation of this object.
inherited
withProps(Map<String, Object?> props) → ElementNode

Operators

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