slideItem method
Widget
slideItem(
- BuildContext context,
- dynamic data,
- int index,
- dynamic animation, {
- 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
);
}