onExitWithData<D> abstract method

void onExitWithData<D>(
  1. void handler(
    1. TransitionHandlerBuilderWithData<D>
    )
)

Describes how transitions from this state should be handled.

This method can be used when the exit handler requires access to state data of an ancestor state.

The build function is called with a TransitionHandlerBuilderWithData that can be used to describe the behavior of the exit transition.

Implementation

void onExitWithData<D>(void Function(TransitionHandlerBuilderWithData<D>) handler);