Skip to Content
API ReferenceNodeExpander

NodeExpander

live Mounts, unmounts, and expands Nodes from Element descriptions. Expanding a node means recursively building the subtree beneath it: for stateless elements by calling Build, for stateful elements by invoking the state’s Build, and for structural elements by walking their declared children. Unmounting a node recursively disposes state and clears child references. This is an internal framework type not intended for direct use.

Methods

Mount

Creates a new Node for , attaches it to , mounts any required State, and recursively expands child nodes.

Rebuild

Re-expands the children of a dirty node after a rebuild. The node’s element must already have been updated to the new description before calling this.

Unmount

Recursively unmounts a node subtree: disposes state bottom-up and clears child references from the node.

UpdateElement

Updates the element reference on a node and, for stateful nodes, invokes StatefulElement) with the previous element. For inherited element nodes, notifies dependents when InheritedElement) returns true.

Last updated on