InfiniteScrollListView<T> constructor
InfiniteScrollListView<T> ({
- Key? key,
- required Widget elementBuilder(
- BuildContext context,
- T element,
- int index,
- Animation<
double> animation,
- required Future<
List< pageLoader(T> ?>- int index
- int comparator(
- T a,
- T b
- ScrollPhysics? physics,
- Axis scrollDirection = Axis.vertical,
- EdgeInsetsGeometry? padding,
- ScrollController? controller,
- bool? primary,
- bool reverse = false,
- bool shrinkWrap = false,
- Widget? noDataWidget,
- Widget? loadingWidget,
- Widget? endOfResultWidget,
- Widget? itemLoadingWidget,
- Widget errorBuilder(
- BuildContext context,
- dynamic error
- Widget elementErrorBuilder(
- BuildContext context,
- dynamic error
- Duration? betweenItemRenderDelay,
- Widget? onRemoveAnimation,
- bool animateRemovingItemsOnReload = false,
- bool refreshable = true,
- Clip clipBehavior = Clip.hardEdge,
Implementation
InfiniteScrollListView({
Key? key,
required this.elementBuilder,
required this.pageLoader,
this.comparator,
this.physics,
this.scrollDirection: Axis.vertical,
this.padding,
this.controller,
this.primary,
this.reverse: false,
this.shrinkWrap: false,
this.noDataWidget,
this.loadingWidget,
this.endOfResultWidget,
this.itemLoadingWidget,
this.errorBuilder,
this.elementErrorBuilder,
this.betweenItemRenderDelay,
this.onRemoveAnimation,
this.animateRemovingItemsOnReload: false,
this.refreshable: true,
this.clipBehavior: Clip.hardEdge,
}) : super(key: key);