EndlessPaginationListView<T> constructor
const
EndlessPaginationListView<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,
- double? extentAfterFactor = 0.4,
- EndlessPaginationController<
T> ? controller, - ScrollController? scrollController,
- void onStateChange(
- Set<
EndlessState> states
- Set<
- EdgeInsets? padding,
- double? itemPadding,
- Widget headerBuilder(
- BuildContext context
- EndlessStateProperty? headerBuilderState,
- Widget emptyBuilder(
- BuildContext context
- EndlessStateProperty? emptyBuilderState,
- Widget loadingBuilder(
- BuildContext context
- EndlessStateProperty? loadingBuilderState,
- Widget loadMoreBuilder(
- BuildContext context
- EndlessStateProperty? loadMoreBuilderState,
- ScrollPhysics? physics,
- bool? initialLoad = true,
- 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);