InfiniteList constructor
const
InfiniteList({
- required int itemCount,
- required VoidCallback onFetchData,
- required ItemBuilder itemBuilder,
- Key? key,
- ScrollController? scrollController,
- Axis scrollDirection = Axis.vertical,
- ScrollPhysics? physics,
- double? cacheExtent,
- Duration debounceDuration = defaultDebounceDuration,
- bool reverse = false,
- bool isLoading = false,
- bool hasError = false,
- bool hasReachedMax = false,
- EdgeInsets? padding,
- WidgetBuilder? emptyBuilder,
- WidgetBuilder? loadingBuilder,
- WidgetBuilder? errorBuilder,
- IndexedWidgetBuilder? separatorBuilder,
- bool centerLoading = false,
- bool centerError = false,
- 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,
});