EndlessPaginationListView<T> constructor

const EndlessPaginationListView<T>({
  1. required Future<List<T>> loadMore(
    1. int pageIndex
    ),
  2. required Widget itemBuilder(
    1. BuildContext context, {
    2. required int index,
    3. required T item,
    4. required int totalItems,
    }),
  3. required EndlessPaginationDelegate paginationDelegate,
  4. double? extentAfterFactor = 0.4,
  5. EndlessPaginationController<T>? controller,
  6. ScrollController? scrollController,
  7. void onStateChange(
    1. Set<EndlessState> states
    )?,
  8. EdgeInsets? padding,
  9. double? itemPadding,
  10. Widget headerBuilder(
    1. BuildContext context
    )?,
  11. EndlessStateProperty? headerBuilderState,
  12. Widget emptyBuilder(
    1. BuildContext context
    )?,
  13. EndlessStateProperty? emptyBuilderState,
  14. Widget loadingBuilder(
    1. BuildContext context
    )?,
  15. EndlessStateProperty? loadingBuilderState,
  16. Widget loadMoreBuilder(
    1. BuildContext context
    )?,
  17. EndlessStateProperty? loadMoreBuilderState,
  18. Widget footerBuilder(
    1. BuildContext context
    )?,
  19. EndlessStateProperty? footerBuilderState,
  20. ScrollPhysics? physics,
  21. bool? initialLoad = true,
  22. dynamic key,
})

Implementation

const EndlessPaginationListView({
  required this.loadMore,
  required this.itemBuilder,
  required this.paginationDelegate,
  this.extentAfterFactor = 0.4,
  this.controller,
  this.scrollController,
  this.onStateChange,
  this.padding,
  this.itemPadding,
  this.headerBuilder,
  this.headerBuilderState,
  this.emptyBuilder,
  this.emptyBuilderState,
  this.loadingBuilder,
  this.loadingBuilderState,
  this.loadMoreBuilder,
  this.loadMoreBuilderState,
  this.footerBuilder,
  this.footerBuilderState,
  this.physics,
  this.initialLoad = true,
  key,
}) : super(key: key);