animateWidgetNeonFlow method

Widget animateWidgetNeonFlow({
  1. Color color = Colors.cyanAccent,
  2. int durationMs = 1500,
  3. bool repeat = true,
  4. bool animate = true,
})
  1. Neon Flow Sweep (Loop)

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);
}