JsUiNode class final

Serializable UI node returned by a quickjs_ui page renderer.

The schema is intentionally small and JSON-compatible. Higher-level DSLs can compile into this shape later, but this remains the runtime rendering input.

Constructors

JsUiNode({required String type, Map<String, Object?> props = const <String, Object?>{}, List<JsUiNode> children = const <JsUiNode>[]})
Creates an immutable UI node.
JsUiNode.fromMap(Map<String, Object?> value)
Parses a node tree from its JSON-compatible map representation.
factory

Properties

children List<JsUiNode>
Immutable direct child nodes.
final
duplicateSiblingKey String?
First duplicate direct-child key, if any.
final
hashCode int
The hash code for this object.
no setterinherited
key String?
Stable key extracted once from props.
final
overlayNodes List<JsUiNode>
Overlay declarations contained by this subtree.
latefinal
props Map<String, Object?>
Immutable component properties.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
structuralSignature String
Stable signature of this node and its complete subtree.
final
type String
Component type registered with the renderer.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
Converts this node tree to a JSON-compatible map.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

maxDepth → const int
Maximum supported nesting depth when parsing a node tree.