animateWidgetCardDeal method
Widget
animateWidgetCardDeal(
{ - int index = 0,
- int durationMs = 600,
- bool repeat = false,
- bool animate = true,
})
- 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();
}