TreeBuildContext class
Provides contextual information while a state tree is being constructed, and factory methods for creating tree nodes.
This is a low-level feature and will not be needed by most applications.
Constructors
- TreeBuildContext.new({ExtendNodeInfo? extendNodes, bool addStoppedState = true})
-
Constructs a TreeBuildContext.
factory
Properties
- extendNodes ↔ ExtendNodeInfo?
-
If provided, this function is called each time this context builds a tree
node. The function is provided the NodeInfoBuilder that can be used to
augment the existing TreeNodeInfo before it is used to construct a node.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
nodes
→ Map<
StateKey, TreeNodeInfo> -
Map of nodes that have been built by this context.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildTree(
RootNodeInfo rootInfo) → TreeNode -
Creates a root
TreeNode
that is fully populated with its descendant nodes, based on the description provided byrootInfo
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited