PqListView<T extends DisposableInterface> constructor
PqListView<T extends DisposableInterface> ({
- Key? key,
- required T controller,
- required ListItemBuilder itemBuilder,
- required int itemCount,
- ListItemBuilder? separatorBuilder,
- EasyRefreshController? refreshController,
- Future<
void> onRefresh()?, - Future<
void> onLoadMore()?, - ScrollController? scrollController,
- Header? header,
- bool firstRefresh = false,
- EdgeInsetsGeometry? padding,
- bool topBouncing = true,
- bool bottomBouncing = true,
- bool preloading = false,
- double preloadingDistanceLimit = PqPreLoader.DEFAULT_PRELOAD_DISTANCE_LIMIT,
- bool autoAddNoMoreView = true,
- Widget? noMoreDataView,
Implementation
PqListView({
Key? key,
required this.controller,
required this.itemBuilder,
required this.itemCount,
this.separatorBuilder,
EasyRefreshController? refreshController,
this.onRefresh,
this.onLoadMore,
this.scrollController,
this.header,
this.footer,
this.firstRefresh = false,
this.padding,
this.topBouncing = true,
this.bottomBouncing = true,
this.preloading = false,
this.preloadingDistanceLimit = PqPreLoader.DEFAULT_PRELOAD_DISTANCE_LIMIT,
this.autoAddNoMoreView = true,
this.noMoreDataView,
}) : this.refreshController = refreshController ?? EasyRefreshController(),
super(key: key);