CustomPaginatedListView<T> constructor

const CustomPaginatedListView<T>({
  1. Key? key,
  2. required int? itemCount,
  3. required NullableIndexedWidgetBuilder? itemBuilder,
  4. ScrollPhysics physics = const AlwaysScrollableScrollPhysics(),
  5. Widget? child,
  6. EdgeInsets? padding,
  7. dynamic onMaxScrollExtent()?,
  8. void onBackInitialScroll()?,
  9. Future<void> onLoadMore()?,
  10. bool isLastPage = false,
  11. bool wantLoadMore = true,
  12. Color? noDataColor,
  13. bool load = false,
  14. Future<void> onRefresh()?,
  15. String noDataText = 'No data found',
  16. bool reverse = false,
  17. double? noDataHeight,
  18. bool shrinkWrap = false,
  19. EdgeInsets? loaderPadding,
})

Implementation

const CustomPaginatedListView({
  super.key,
  required this.itemCount,
  required this.itemBuilder,
  this.physics = const AlwaysScrollableScrollPhysics(),
  this.child,
  this.padding,
  this.onMaxScrollExtent,
  this.onBackInitialScroll,
  this.onLoadMore,
  this.isLastPage = false,
  this.wantLoadMore = true,
  this.noDataColor,
  this.load = false,
  this.onRefresh,
  this.noDataText = 'No data found',
  this.reverse = false,
  this.noDataHeight,
  this.shrinkWrap = false, this.loaderPadding,
});