InfiniteList constructor

const InfiniteList({
  1. Key? key,
  2. required int itemCount,
  3. required IndexedWidgetBuilder itemBuilder,
  4. required VoidCallback onLoadMore,
  5. bool hasMore = true,
  6. bool isLoading = false,
  7. double loadMoreThreshold = 200.0,
  8. int shimmerCount = 3,
  9. EdgeInsets? padding,
  10. Widget? separator,
  11. ScrollController? scrollController,
  12. ScrollPhysics? physics,
  13. bool shrinkWrap = false,
  14. 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,
});