InfiniteList constructor

const InfiniteList({
  1. required int itemCount,
  2. required VoidCallback onFetchData,
  3. required ItemBuilder itemBuilder,
  4. Key? key,
  5. ScrollController? scrollController,
  6. Axis scrollDirection = Axis.vertical,
  7. ScrollPhysics? physics,
  8. double? cacheExtent,
  9. Duration debounceDuration = defaultDebounceDuration,
  10. bool reverse = false,
  11. bool isLoading = false,
  12. bool hasError = false,
  13. bool hasReachedMax = false,
  14. EdgeInsets? padding,
  15. WidgetBuilder? emptyBuilder,
  16. WidgetBuilder? loadingBuilder,
  17. WidgetBuilder? errorBuilder,
  18. IndexedWidgetBuilder? separatorBuilder,
  19. bool centerLoading = false,
  20. bool centerError = false,
  21. bool centerEmpty = false,
})

Implementation

const InfiniteList({
  required this.itemCount,
  required this.onFetchData,
  required this.itemBuilder,
  super.key,
  this.scrollController,
  this.scrollDirection = Axis.vertical,
  this.physics,
  this.cacheExtent,
  this.debounceDuration = defaultDebounceDuration,
  this.reverse = false,
  this.isLoading = false,
  this.hasError = false,
  this.hasReachedMax = false,
  this.padding,
  this.emptyBuilder,
  this.loadingBuilder,
  this.errorBuilder,
  this.separatorBuilder,
  this.centerLoading = false,
  this.centerError = false,
  this.centerEmpty = false,
});