animateWidgetStarShine method

Widget animateWidgetStarShine({
  1. int durationMs = 2000,
  2. bool repeat = true,
  3. bool animate = true,
})
  1. 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);
}