PqSliverView<T extends DisposableInterface> constructor

PqSliverView<T extends DisposableInterface>({
  1. Key? key,
  2. required T? controller,
  3. required SliverItemBuilder itemBuilder,
  4. EasyRefreshController? refreshController,
  5. Future<void> onRefresh()?,
  6. Future<void> onLoadMore()?,
  7. ScrollController? scrollController,
  8. Header? header,
  9. Footer? footer,
  10. bool firstRefresh = false,
  11. bool topBouncing = true,
  12. bool bottomBouncing = true,
  13. bool preloading = false,
  14. double preloadingDistanceLimit = PqPreLoader.DEFAULT_PRELOAD_DISTANCE_LIMIT,
  15. bool autoAddNoMoreView = true,
  16. Widget? noMoreDataView,
})

Implementation

PqSliverView({
  Key? key,
  required this.controller,
  required this.itemBuilder,
  EasyRefreshController? refreshController,
  this.onRefresh,
  this.onLoadMore,
  this.scrollController,
  this.header,
  this.footer,
  this.firstRefresh = false,
  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);