EndlessPaginationGridView<T> constructor
const
EndlessPaginationGridView<T> ({
- required Future<
List< loadMore(T> >- int pageIndex
- required Widget itemBuilder(
- BuildContext context, {
- required int index,
- required T item,
- required int totalItems,
- required EndlessPaginationDelegate paginationDelegate,
- required SliverGridDelegate gridDelegate,
- Widget headerBuilder(
- BuildContext context
- EndlessStateProperty? headerBuilderState,
- Widget emptyBuilder(
- BuildContext context
- EndlessStateProperty? emptyBuilderState,
- Widget loadingBuilder(
- BuildContext context
- EndlessStateProperty? loadingBuilderState,
- Widget loadMoreBuilder(
- BuildContext context
- EndlessStateProperty? loadMoreBuilderState,
- EndlessPaginationController<
T> ? controller, - ScrollController? scrollController,
- EdgeInsets? padding,
- void onStateChange(
- Set<
EndlessState> states
- Set<
- ScrollPhysics? physics,
- bool? initialLoad = true,
- double? extentAfterFactor = 0.4,
- 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);