animateLaserSweep method
- Glass Shine (Fast)
Implementation
Widget animateLaserSweep({bool animate = true}) {
if (!animate) return this;
return this
.animate(onPlay: (controller) => controller.repeat(period: 1000.ms))
.shimmer(
duration: 600.ms,
color: Colors.white.withValues(alpha: 0.8),
stops: const [0.4, 0.5, 0.6],
angle: 60);
}