LoadMoreListData<T> constructor
const
LoadMoreListData<T> ({
- Key? key,
- required OnInit<
T> onInit, - required ItemBuilder<
T> builder, - required OnLoad<
T> onLoad, - EdgeInsetsGeometry? padding,
- Widget? onInitialLoading,
- Widget? onLoadMoreLoading,
- Widget? topWidget,
- Widget? bottomWidget,
- Widget? onNoData,
- EdgeInsetsGeometry? itemPadding,
- int? initPage = 1,
LoadMoreListData is the main, and and only widget you need to archive pagination
Implementation
const LoadMoreListData({
super.key,
required this.onInit,
required this.builder,
required this.onLoad,
this.padding,
this.onInitialLoading,
this.onLoadMoreLoading,
this.topWidget,
this.bottomWidget,
this.onNoData,
this.itemPadding,
this.initPage = 1,
});