callback used when we exiting this State. Provide provide a default no-op implementation.
// ignore: prefer_function_declarations_over_variables OnExit onExit = (toState, event) => null;