EndlessPaginationGridView<T> constructor

const EndlessPaginationGridView<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. required SliverGridDelegate gridDelegate,
  5. Widget headerBuilder(
    1. BuildContext context
    )?,
  6. EndlessStateProperty? headerBuilderState,
  7. Widget emptyBuilder(
    1. BuildContext context
    )?,
  8. EndlessStateProperty? emptyBuilderState,
  9. Widget loadingBuilder(
    1. BuildContext context
    )?,
  10. EndlessStateProperty? loadingBuilderState,
  11. Widget loadMoreBuilder(
    1. BuildContext context
    )?,
  12. EndlessStateProperty? loadMoreBuilderState,
  13. Widget footerBuilder(
    1. BuildContext context
    )?,
  14. EndlessStateProperty? footerBuilderState,
  15. EndlessPaginationController<T>? controller,
  16. ScrollController? scrollController,
  17. EdgeInsets? padding,
  18. void onStateChange(
    1. Set<EndlessState> states
    )?,
  19. ScrollPhysics? physics,
  20. bool? initialLoad = true,
  21. double? extentAfterFactor = 0.4,
  22. dynamic key,
})

Implementation

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