animateGoldSweep method

Widget animateGoldSweep({
  1. bool animate = true,
})
  1. Golden Metallic Sweep

Implementation

Widget animateGoldSweep({bool animate = true}) {
  if (!animate) return this;
  return this
      .animate(onPlay: (controller) => controller.repeat())
      .shimmer(
        duration: 2500.ms,
        color: const Color(0xFFFFD700).withValues(alpha: 0.3),
        stops: const [0, 0.5, 1],
        angle: 45,
      )
      .shimmer(
        delay: 1250.ms,
        duration: 2500.ms,
        color: Colors.white.withValues(alpha: 0.2),
        angle: 45,
      );
}