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