onExit abstract method
Sets callback that will be called right before machine exits this State.
Implementation
void onExit(OnExitAction onExit);
Sets callback that will be called right before machine exits this State.
void onExit(OnExitAction onExit);