onEnterWithData<D2> abstract method

void onEnterWithData<D2>(
  1. void build(
    1. TransitionHandlerBuilder<D, D2>
    )
)

Describes how transitions to this state should be handled.

This method can be used when the entry handler requires access to state data of type D2 from an ancestor state.

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

Implementation

void onEnterWithData<D2>(void Function(TransitionHandlerBuilder<D, D2>) build);