fadeItem method

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

Implementation

Widget fadeItem(BuildContext context, dynamic data, int index, animation, {Widget? child}) {
  final widget = child ?? renderListItem(data, index, animation);
  return FadeTransition(
    opacity: animation,
    child: widget
  );
}