animateWidgetAttention method

Widget animateWidgetAttention({
  1. int durationMs = 1000,
  2. bool repeat = true,
  3. bool animate = true,
})
  1. Attention Magnet

Implementation

Widget animateWidgetAttention(
    {int durationMs = 1000, bool repeat = true, bool animate = true}) {
  if (!animate) return this;
  return _baseAnimate(repeat: repeat, reverse: true)
      .scale(
          begin: const Offset(1, 1),
          end: const Offset(1.05, 1.05),
          duration: durationMs.ms)
      .shimmer(delay: 2000.ms, duration: durationMs.ms);
}