sizeItem method

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

Implementation

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