animateWidgetCardDeal method

Widget animateWidgetCardDeal({
  1. int index = 0,
  2. int durationMs = 600,
  3. bool repeat = false,
  4. bool animate = true,
})
  1. Credit Card Deal (Staggered)

Implementation

Widget animateWidgetCardDeal(
    {int index = 0,
    int durationMs = 600,
    bool repeat = false,
    bool animate = true}) {
  if (!animate) return this;
  return _baseAnimate(delayMs: index * 100, repeat: repeat)
      .moveY(
          begin: 300,
          end: 0,
          curve: Curves.easeOutQuart,
          duration: durationMs.ms)
      .rotate(begin: 0.1, end: 0, duration: durationMs.ms)
      .fadeIn();
}