InfiniteScrollListView<T> constructor

InfiniteScrollListView<T>({
  1. Key? key,
  2. required Widget elementBuilder(
    1. BuildContext context,
    2. T element,
    3. int index,
    4. Animation<double> animation,
    ),
  3. required Future<List<T>?> pageLoader(
    1. int index
    ),
  4. int comparator(
    1. T a,
    2. T b
    )?,
  5. ScrollPhysics? physics,
  6. Axis scrollDirection = Axis.vertical,
  7. EdgeInsetsGeometry? padding,
  8. ScrollController? controller,
  9. bool? primary,
  10. bool reverse = false,
  11. bool shrinkWrap = false,
  12. Widget? noDataWidget,
  13. Widget? loadingWidget,
  14. Widget? endOfResultWidget,
  15. Widget? itemLoadingWidget,
  16. Widget errorBuilder(
    1. BuildContext context,
    2. dynamic error
    )?,
  17. Widget elementErrorBuilder(
    1. BuildContext context,
    2. dynamic error
    )?,
  18. Duration? betweenItemRenderDelay,
  19. Widget? onRemoveAnimation,
  20. bool animateRemovingItemsOnReload = false,
  21. bool refreshable = true,
  22. 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);