slideItem method

Widget slideItem(
  1. BuildContext context,
  2. dynamic data,
  3. int index,
  4. dynamic animation, {
  5. Widget? child,
})

Implementation

Widget slideItem(BuildContext context, dynamic data, int index, animation, {Widget? child}) {
  final widget = child ?? renderListItem(data, index, animation);
  return SlideTransition(
      position: Tween<Offset>(
        begin: const Offset(-1, 0),
        end: Offset(0, 0),
      ).animate(animation),
      child: widget
  );
}