animateOnActionTrigger method

Widget animateOnActionTrigger(
  1. AnimationInfo animationInfo, {
  2. List<Effect>? effects,
  3. 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;
}