onExit property

OnExit onExit
getter/setter pair

callback used when we exiting this State. Provide provide a default no-op implementation.

Implementation

// ignore: prefer_function_declarations_over_variables
OnExit onExit = (toState, event) => null;