animateOnPageLoad method

Widget animateOnPageLoad(
  1. AnimationInfo animationMaps, {
  2. List<Effect>? effects,
})

Implementation

Widget animateOnPageLoad(
  AnimationInfo animationMaps, {
  List<Effect>? effects,
}) {
  animationMaps.maybeUpdateEffects(effects);
  return Animate(
    effects: animationMaps.effects,
    child: this,
    onPlay: (controller) => animationMaps.loop
        ? controller.repeat(reverse: animationMaps.reverse)
        : null,
    onComplete: (controller) => !animationMaps.loop && animationMaps.reverse
        ? controller.reverse()
        : null,
  );
}