CompositeNodeInfo class sealed

Provides information about how a composite tree node should be built. A composite node is a node with child nodes.

Pattern-match against subclasses to obtain additional information about the node.

Inheritance
Implementers
Available extensions

Properties

children List<TreeNodeInfo>
Unmodifiable list of the child nodes of this node.
final
createState StateCreator
A factory function that can create the TreeState that defines the behavior of the node when it is an active state in a state machine.
finalinherited
dataCodec StateDataCodec?
The StateDataCodec that should be used to serialize and deserialize any state data associated with this node.
finalinherited
filters List<TreeStateFilter>
An unmodifiable list of TreeStateFilters that should intercept the message and transition handlers of the tree state for this node.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
initialChild GetInitialChild
A function that can select the initial child state to enter when the state is entered.
final
key StateKey
Identifies the node to be built.
finalinherited
metadata Map<String, Object>
An unmodifiable map of application-provided metadata associated with this node.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

ancestors() Iterable<TreeNodeInfo>

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

Lazily-computes the ancestor nodes of this node.
children() Iterable<TreeNodeInfo>

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

The child nodes of this node.
descendants() Iterable<TreeNodeInfo>

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

Lazily-computes the descendant nodes of this node, in depth first order
leaves() Iterable<LeafNodeInfo>

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

Lazily-computes the descendant leaf nodes of this node.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parent() TreeNodeInfo?

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

The parent node of this node, or null if it is a root node.
root() RootNodeInfo

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

Returns the root ancestor node of this node, or this node itself if it is a root node.
selfAndAncestors() Iterable<TreeNodeInfo>

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

Lazily-computes the self-and-ancestor nodes of this node.
selfAndDescendants() Iterable<TreeNodeInfo>

Available on TreeNodeInfo, provided by the TreeNodeInfoNavigationExtension extension

Lazily-computes the self-and-descendant nodes of this node, in depth-first order
toString() String
A string representation of this object.
inherited

Operators

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