animateWidgetAurora method

Widget animateWidgetAurora({
  1. int durationMs = 4000,
  2. bool repeat = true,
  3. bool animate = true,
})
  1. Aurora Sweep (Loop)

Implementation

Widget animateWidgetAurora(
    {int durationMs = 4000, bool repeat = true, bool animate = true}) {
  if (!animate) return this;
  return _baseAnimate(repeat: repeat, reverse: true)
      .shimmer(
          duration: durationMs.ms,
          color: Colors.purpleAccent.withColorOpacity(0.1))
      .shimmer(
          duration: (durationMs * 0.75).toInt().ms,
          color: Colors.blueAccent.withColorOpacity(0.1));
}