animateWidgetSpotlightReveal method
Widget
animateWidgetSpotlightReveal(
{ - int delayMs = 0,
- int durationMs = 1000,
- bool repeat = false,
- bool animate = true,
})
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);
}