getTransitionEffectTiming method
Implementation
EffectTiming? getTransitionEffectTiming(String property) {
List? transitionOptions = effectiveTransitions[property] ?? effectiveTransitions[ALL];
// [duration, function, delay]
if (transitionOptions != null) {
return EffectTiming(
duration: CSSTime.parseNotNegativeTime(transitionOptions[0])!.toDouble(),
easing: transitionOptions[1],
delay: CSSTime.parseTime(transitionOptions[2])!.toDouble(),
// In order for CSS Transitions to be seeked backwards, they need to have their fill mode set to backwards
// such that the original CSS value applied prior to the transition is used for a negative current time.
fill: FillMode.backwards,
);
}
return null;
}