AnimatedListWrapper constructor

const AnimatedListWrapper({
  1. Key? key,
  2. required int itemCount,
  3. required IndexedWidgetBuilder itemBuilder,
  4. bool isLoading = false,
  5. Widget? loadingWidget,
  6. IndexedWidgetBuilder? separatorBuilder,
  7. int? crossAxisCount,
  8. ListAnimationType animationType = ListAnimationType.slideY,
  9. double spacing = 10,
  10. EdgeInsetsGeometry? padding,
  11. bool shrinkWrap = false,
  12. ScrollPhysics? physics,
  13. int intervalMs = 60,
  14. int durationMs = 400,
  15. Axis scrollDirection = Axis.vertical,
  16. bool animate = true,
})

Implementation

const AnimatedListWrapper({
  super.key,
  required this.itemCount,
  required this.itemBuilder,
  this.isLoading = false,
  this.loadingWidget,
  this.separatorBuilder,
  this.crossAxisCount,
  this.animationType = ListAnimationType.slideY,
  this.spacing = 10,
  this.padding,
  this.shrinkWrap = false,
  this.physics,
  this.intervalMs = 60,
  this.durationMs = 400,
  this.scrollDirection = Axis.vertical,
  this.animate = true, // ✅ Default value: true
});