PqListView<T extends DisposableInterface> constructor

PqListView<T extends DisposableInterface>({
  1. Key? key,
  2. required T controller,
  3. required ListItemBuilder itemBuilder,
  4. required int itemCount,
  5. ListItemBuilder? separatorBuilder,
  6. EasyRefreshController? refreshController,
  7. Future<void> onRefresh()?,
  8. Future<void> onLoadMore()?,
  9. ScrollController? scrollController,
  10. Header? header,
  11. Footer? footer,
  12. bool firstRefresh = false,
  13. EdgeInsetsGeometry? padding,
  14. bool topBouncing = true,
  15. bool bottomBouncing = true,
  16. bool preloading = false,
  17. double preloadingDistanceLimit = PqPreLoader.DEFAULT_PRELOAD_DISTANCE_LIMIT,
  18. bool autoAddNoMoreView = true,
  19. 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);