animateListShimmerReveal method

Widget animateListShimmerReveal({
  1. required int index,
  2. int intervalMs = 100,
  3. int durationMs = 800,
  4. bool animate = true,
})
  1. Shimmer Reveal

Implementation

Widget animateListShimmerReveal(
    {required int index,
    int intervalMs = 100,
    int durationMs = 800,
    bool animate = true}) {
  if (!animate) return this;
  return this
      .animate(delay: _getDelay(index, intervalMs).ms)
      .fadeIn(duration: 400.ms)
      .moveX(begin: -20, end: 0, duration: durationMs.ms)
      .shimmer(delay: 200.ms, duration: durationMs.ms, color: Colors.white24);
}