animateOnPageLoad method

Widget animateOnPageLoad(
  1. AnimationInfo animationInfo
)

Implementation

Widget animateOnPageLoad(AnimationInfo animationInfo) => Animate(
    effects: animationInfo.effects,
    child: this,
    onPlay: (controller) => animationInfo.loop
        ? controller.repeat(reverse: animationInfo.reverse)
        : null,
    onComplete: (controller) => !animationInfo.loop && animationInfo.reverse
        ? controller.reverse()
        : null);