isShown property

bool get isShown

Whether the AbstractTransitionComponent is in a "visible" state.

You should add your CSS class that starts a transition based on this value.

Implementation

bool get isShown =>
    state.transitionPhase == TransitionPhase.SHOWN ||
    state.transitionPhase == TransitionPhase.SHOWING;