animateOnPageLoad method
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,
);
}