animateListJellyBounce method

Widget animateListJellyBounce({
  1. required int index,
  2. int intervalMs = 60,
  3. int durationMs = 1000,
  4. bool animate = true,
})
  1. Jelly Bounce

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);
}