exit method
void
exit([
- TState? next
Runs all registered exit callbacks for this state.
next is the state that will become active after this one, if any.
Implementation
void exit([TState? next]) => _internalState.exit(this as TState, next);