animateNeonFlow method
- Neon Flow
Implementation
Widget animateNeonFlow({
Color color = Colors.cyanAccent,
bool animate = true,
}) {
if (!animate) return this;
return this
.animate(onPlay: (controller) => controller.repeat())
.shimmer(
duration: 1500.ms,
color: color.withValues(alpha: 0.4),
angle: 0,
)
.shimmer(
duration: 1500.ms,
color: color.withValues(alpha: 0.2),
angle: 90,
);
}