AbstractListBuilder<B extends StateStreamableSource<S>, S extends AbstractListState> constructor

AbstractListBuilder<B extends StateStreamableSource<S>, S extends AbstractListState>({
  1. Key? key,
  2. int columns = 1,
  3. double? cacheExtent,
  4. double mainAxisSpacing = 0.0,
  5. double crossAxisSpacing = 0.0,
  6. double childAspectRatio = 1.0,
  7. double? mainAxisExtent,
  8. Axis scrollDirection = Axis.vertical,
  9. ScrollPhysics? physics,
  10. ScrollController? controller,
  11. bool enableRefresh = true,
  12. bool enableLoadMore = true,
  13. Widget errorBuilder(
    1. BuildContext context,
    2. void onInit(),
    3. S state
    )?,
  14. Widget noDataBuilder(
    1. BuildContext context,
    2. void onInit(),
    3. S state
    )?,
  15. Widget loaderBuilder(
    1. BuildContext context,
    2. S state
    )?,
  16. Widget? header,
  17. Widget headerBuilder(
    1. BuildContext context,
    2. S state
    )?,
  18. AbstractScrollBehaviour headerScrollBehaviour = AbstractScrollBehaviour.scrollable,
  19. bool isLoading(
    1. BuildContext context,
    2. S state
    )?,
  20. bool isError(
    1. BuildContext context,
    2. S state
    )?,
  21. int itemCount(
    1. BuildContext context,
    2. S state
    )?,
  22. Widget separatorBuilder(
    1. BuildContext context,
    2. S state,
    3. int index
    )?,
  23. double heightBuilder(
    1. BuildContext context,
    2. S state
    )?,
  24. Widget itemBuilder(
    1. BuildContext context,
    2. S state,
    3. int index
    )?,
  25. Widget builder(
    1. BuildContext context,
    2. S state
    )?,
  26. void listener(
    1. BuildContext context,
    2. S state
    )?,
  27. void onLoaded(
    1. BuildContext context,
    2. S state
    )?,
  28. void onLoadedCached(
    1. BuildContext context,
    2. S state
    )?,
  29. void onError(
    1. BuildContext context,
    2. S state
    )?,
  30. Widget? footer,
  31. Widget footerBuilder(
    1. BuildContext context,
    2. S state
    )?,
  32. AbstractScrollBehaviour footerScrollBehaviour = AbstractScrollBehaviour.scrollable,
  33. Widget additionalBuilder(
    1. BuildContext context,
    2. S state,
    3. Widget child
    )?,
  34. void onInit(
    1. BuildContext context
    )?,
  35. bool skipInitialOnInit = false,
  36. void onRefresh(
    1. BuildContext context
    )?,
  37. void onLoadMore(
    1. BuildContext context
    )?,
  38. B? providerValue,
  39. B provider(
    1. BuildContext context
    )?,
  40. List<SingleChildWidget>? providers,
})

Implementation

AbstractListBuilder({
  Key? key,
  this.columns = 1,
  this.cacheExtent,
  this.mainAxisSpacing = 0.0,
  this.crossAxisSpacing = 0.0,
  this.childAspectRatio = 1.0,
  this.mainAxisExtent,
  this.scrollDirection = Axis.vertical,
  this.physics,
  this.controller,
  this.enableRefresh = true,
  this.enableLoadMore = true,
  this.errorBuilder,
  this.noDataBuilder,
  this.loaderBuilder,
  this.header,
  this.headerBuilder,
  this.headerScrollBehaviour = AbstractScrollBehaviour.scrollable,
  this.isLoading,
  this.isError,
  this.itemCount,
  this.separatorBuilder,
  this.heightBuilder,
  this.itemBuilder,
  this.builder,
  this.listener,
  this.onLoaded,
  this.onLoadedCached,
  this.onError,
  this.footer,
  this.footerBuilder,
  this.footerScrollBehaviour = AbstractScrollBehaviour.scrollable,
  this.additionalBuilder,
  this.onInit,
  this.skipInitialOnInit = false,
  this.onRefresh,
  this.onLoadMore,
  this.providerValue,
  this.provider,
  this.providers,
}) : super(key: key);