getTransitionTestAttributes method
Returns attributes only available during testing that indicate the state of the transition.
Implementation
Map<String, String?> getTransitionTestAttributes() {
if (!component_base.UiProps.testMode) return const {};
const enumToAttrValue = <TransitionPhase, String>{
TransitionPhase.SHOWN: 'shown',
TransitionPhase.HIDDEN: 'hidden',
TransitionPhase.HIDING: 'hiding',
TransitionPhase.PRE_SHOWING: 'pre-showing',
TransitionPhase.SHOWING: 'showing',
};
return {
transitionPhaseTestAttr: enumToAttrValue[state.transitionPhase],
};
}