animateWidgetNeonFlow method
Widget
animateWidgetNeonFlow(
{ - Color color = Colors.cyanAccent,
- int durationMs = 1500,
- bool repeat = true,
- bool animate = true,
})
Implementation
Widget animateWidgetNeonFlow({
Color color = Colors.cyanAccent,
int durationMs = 1500,
bool repeat = true,
bool animate = true,
}) {
if (!animate) return this;
return _baseAnimate(repeat: repeat)
.shimmer(
duration: durationMs.ms,
color: color.withColorOpacity(0.4),
angle: 0,
)
.shimmer(
duration: durationMs.ms,
color: color.withColorOpacity(0.2),
angle: 90,
);
}