TreeBuildContext class
Provides contextual information while a state tree is being constructed, and factory methods for creating tree nodes.
This interface is infrastructure, and is not intended to be called by application code.
Constructors
- TreeBuildContext()
-
Constructs a TreeBuildContext.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
nodes
→ Map<
StateKey, TreeNode> -
Map of nodes that have been built.
final
- parentNode → TreeNode?
-
The current parent node for nodes that will be built.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildInterior(
StateKey key, StateCreator createState, Iterable< _NodeBuilder> children, GetInitialChild initialChild, StateDataCodec? codec) → TreeNode -
buildLeaf(
StateKey key, StateCreator createState, StateDataCodec? codec, {bool isFinal = false}) → TreeNode -
buildRoot(
StateKey key, StateCreator createState, Iterable< _NodeBuilder> children, GetInitialChild initialChild, StateDataCodec? codec) → TreeNode -
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