addNested<S> method

void addNested<S>(
  1. Machine<S> machine
)

Adds a nested machine that gets started when this state is entered, and stopped when this state is left.

Implementation

void addNested<S>(Machine<S> machine) =>
    addTransition(NestedTransition<S>(machine));