CodelessNodeTreeView class

Renders Codelessly nodes directly, without a published layout or Firebase.

nodes is keyed by node id and rootId identifies the entry node. Parent links are derived from each parent's children list. Pass variables keyed by variable id (their names are used in bindings), and data for ${data} bindings and initial values. Changes to these inputs require a new map or widget rebuild; changing a variable at runtime through an SDK action uses the existing observable variable pipeline.

onAction receives enabled CallFunctionAction reactions, including substituted parameters. Other reaction types are rejected before rendering; standalone trees cannot execute native actions. Host this widget under a MaterialApp for Material widgets and navigation.

Inheritance

Constructors

CodelessNodeTreeView({Key? key, required Map<String, BaseNode> nodes, required String rootId, Map<String, dynamic> data = const {}, ValueListenable<Map<String, dynamic>>? dataListenable, Map<String, VariableData> variables = const {}, ThemeData? theme, CodelessNodeAction? onAction, bool previewNativePaywallActions = false})
const

Properties

data → Map<String, dynamic>
final
dataListenable → ValueListenable<Map<String, dynamic>>?
Optional external data source; updates the SDK context without reloading nodes.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
nodes → Map<String, BaseNode>
final
onAction → CodelessNodeAction?
final
previewNativePaywallActions → bool
Editor-only inert paywall preview. Native actions are stripped from a cloned node tree; this never dispatches a purchase, restore or legal URL.
final
rootId → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
theme → ThemeData?
final
variables → Map<String, VariableData>
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<CodelessNodeTreeView>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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