Readonly
keyThe unique key for the node. It is unique from all other nodes in the ThemeBuilder
Readonly
nameThe name of the node, which is unique relative to it's siblings
Add a dependency to another node in the tree
Set a listener on this node
The name of the listener.
The callback to call when an event occurs.
Optional
eventTypes: EventType[]The types of events to wait for. If none are specified, listen for all events.
The ListenerSubscription which should be canceled to stop listening.
The Node class is the base class for all atoms, molecules, and organisms.
It is used to create a tree of the following form:
It is also used to form a dependency graph between nodes of the tree.
Each node may depend on other nodes and inversely may be depended on by other nodes. A node is considered "initialized" only when all children are initialized. A Prop (a leaf node) is considered "initialized" if it is either not a required property or it is required but has a value. A node is considered "enabled" only when all dependency nodes are "initialized". Listeners are notified when it transitions the enabled status of a node changes.