animateWidgetSpotlightReveal method

Widget animateWidgetSpotlightReveal({
  1. int delayMs = 0,
  2. int durationMs = 1000,
  3. bool repeat = false,
  4. bool animate = true,
})
  1. Final Luxury Spotlight

Implementation

Widget animateWidgetSpotlightReveal(
    {int delayMs = 0,
    int durationMs = 1000,
    bool repeat = false,
    bool animate = true}) {
  if (!animate) return this;
  return _baseAnimate(delayMs: delayMs, repeat: repeat)
      .fadeIn(duration: 500.ms)
      .shimmer(
          duration: durationMs.ms,
          color: Colors.white.withColorOpacity(0.2),
          angle: 45)
      .scale(
          begin: const Offset(0.95, 0.95),
          end: const Offset(1, 1),
          duration: durationMs.ms);
}