AnimatedListWrapper constructor
const
AnimatedListWrapper({
- Key? key,
- required int itemCount,
- required IndexedWidgetBuilder itemBuilder,
- bool isLoading = false,
- Widget? loadingWidget,
- IndexedWidgetBuilder? separatorBuilder,
- int? crossAxisCount,
- ListAnimationType animationType = ListAnimationType.slideY,
- double spacing = 10,
- EdgeInsetsGeometry? padding,
- bool shrinkWrap = false,
- ScrollPhysics? physics,
- int intervalMs = 60,
- int durationMs = 400,
- Axis scrollDirection = Axis.vertical,
- 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
});