InitialChild constructor

InitialChild(
  1. StateKey key
)

Constructs an InitialChild indicating that the state identified by key should be entered.

Implementation

factory InitialChild(StateKey key) {
  return InitialChild._((_) => key, key);
}