animateOnActionTrigger method
Widget
animateOnActionTrigger(
- AnimationInfo animationInfo, {
- List<
Effect> ? effects, - bool hasBeenTriggered = false,
Implementation
Widget animateOnActionTrigger(
AnimationInfo animationInfo, {
List<Effect<dynamic>>? effects,
bool hasBeenTriggered = false,
}) {
animationInfo.maybeUpdateEffects(effects);
return hasBeenTriggered || animationInfo.applyInitialState
? Animate(
controller: animationInfo.controller,
autoPlay: false,
effects: animationInfo.effects,
child: this,
)
: this;
}