InitialChild.run constructor
InitialChild.run(
- GetInitialChild getInitialChild
Constructs an InitialChild that will run the getInitialChild function when the state is
entered in order to determine the initial child,
Because the behavior of getInitialChild is opaque to a StateTreeFormatter when
StateTreeBuilder.format is called, the graph description produced by the formatter may not
be particularly useful. This method is best avoided if the formatting feature is important to you.
Implementation
factory InitialChild.run(GetInitialChild getInitialChild) {
return InitialChild._(getInitialChild, null);
}