animateListDiagonalSlice method

Widget animateListDiagonalSlice({
  1. required int index,
  2. int intervalMs = 50,
  3. int durationMs = 600,
  4. bool animate = true,
})
  1. Diagonal Slice

Implementation

Widget animateListDiagonalSlice({
  required int index,
  int intervalMs = 50,
  int durationMs = 600,
  bool animate = true,
}) {
  if (!animate) return this;
  return this
      .animate(delay: _getDelay(index, intervalMs).ms)
      .fadeIn(duration: 400.ms)
      .move(
        begin: const Offset(-50, -50),
        end: Offset.zero,
        curve: Curves.easeOutCubic,
        duration: durationMs.ms,
      );
}