InfiniteList constructor
const
InfiniteList({
- Key? key,
- required int itemCount,
- required IndexedWidgetBuilder itemBuilder,
- required VoidCallback onLoadMore,
- bool hasMore = true,
- bool isLoading = false,
- double loadMoreThreshold = 200.0,
- int shimmerCount = 3,
- EdgeInsets? padding,
- Widget? separator,
- ScrollController? scrollController,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- Widget? emptyWidget,
Implementation
const InfiniteList({
super.key,
required this.itemCount,
required this.itemBuilder,
required this.onLoadMore,
this.hasMore = true,
this.isLoading = false,
this.loadMoreThreshold = 200.0,
this.shimmerCount = 3,
this.padding,
this.separator,
this.scrollController,
this.physics,
this.shrinkWrap = false,
this.emptyWidget,
});