animateWidgetStamp method

Widget animateWidgetStamp({
  1. int delayMs = 0,
  2. int durationMs = 500,
  3. bool repeat = false,
  4. bool animate = true,
})
  1. Stamp Impact

Implementation

Widget animateWidgetStamp(
    {int delayMs = 0,
    int durationMs = 500,
    bool repeat = false,
    bool animate = true}) {
  if (!animate) return this;
  return _baseAnimate(delayMs: delayMs, repeat: repeat)
      .fadeIn(duration: 200.ms)
      .scale(
          begin: const Offset(2.0, 2.0),
          end: const Offset(1, 1),
          curve: Curves.easeInCirc,
          duration: durationMs.ms)
      .then()
      .shake(hz: 2, duration: 200.ms);
}