animateListPullBack method
Widget
animateListPullBack(
{ - required int index,
- int intervalMs = 60,
- int durationMs = 800,
- bool animate = true,
})
Implementation
Widget animateListPullBack(
{required int index,
int intervalMs = 60,
int durationMs = 800,
bool animate = true}) {
if (!animate) return this;
return this
.animate(delay: _getDelay(index, intervalMs).ms)
.fadeIn(duration: 300.ms)
.scale(
begin: const Offset(1.3, 1.3),
end: const Offset(1, 1),
curve: Curves.elasticOut,
duration: durationMs.ms)
.slideY(begin: -0.2, end: 0);
}