animateListGhostSweep method

Widget animateListGhostSweep({
  1. required int index,
  2. int intervalMs = 40,
  3. int durationMs = 400,
  4. bool animate = true,
})
  1. Ghost Sweep

Implementation

Widget animateListGhostSweep({
  required int index,
  int intervalMs = 40,
  int durationMs = 400,
  bool animate = true,
}) {
  if (!animate) return this;
  return this
      .animate(delay: _getDelay(index, intervalMs).ms)
      .fadeIn(duration: 200.ms)
      .slideX(
        begin: -0.3,
        end: 0,
        curve: Curves.linearToEaseOut,
        duration: durationMs.ms,
      )
      .blurX(begin: 20, end: 0, duration: durationMs.ms);
}