animateWidgetStarShine method
Widget
animateWidgetStarShine(
{ - int durationMs = 2000,
- bool repeat = true,
- bool animate = true,
})
- Star Particle Shine (Loop)
Implementation
Widget animateWidgetStarShine(
{int durationMs = 2000, bool repeat = true, bool animate = true}) {
if (!animate) return this;
return _baseAnimate(repeat: repeat)
.shimmer(
duration: durationMs.ms,
color: Colors.white.withColorOpacity(0.4),
blendMode: BlendMode.overlay)
.shake(hz: 0.5, curve: Curves.easeInOut)
.scale(
begin: const Offset(1, 1),
end: const Offset(1.02, 1.02),
duration: (durationMs / 2).ms);
}