AbstractListBuilder<B extends StateStreamableSource<S> , S extends AbstractListState> constructor
AbstractListBuilder<B extends StateStreamableSource<S> , S extends AbstractListState> ({
- Key? key,
- int columns = 1,
- double? cacheExtent,
- double mainAxisSpacing = 0.0,
- double crossAxisSpacing = 0.0,
- double childAspectRatio = 1.0,
- double? mainAxisExtent,
- Axis scrollDirection = Axis.vertical,
- ScrollPhysics? physics,
- ScrollController? controller,
- bool enableRefresh = true,
- bool enableLoadMore = true,
- Widget errorBuilder(
- BuildContext context,
- void onInit(),
- S state
- Widget noDataBuilder(
- BuildContext context,
- void onInit(),
- S state
- Widget loaderBuilder(
- BuildContext context,
- S state
- Widget? header,
- Widget headerBuilder(
- BuildContext context,
- S state
- AbstractScrollBehaviour headerScrollBehaviour = AbstractScrollBehaviour.scrollable,
- bool isLoading(
- BuildContext context,
- S state
- bool isError(
- BuildContext context,
- S state
- int itemCount(
- BuildContext context,
- S state
- Widget separatorBuilder(
- BuildContext context,
- S state,
- int index
- double heightBuilder(
- BuildContext context,
- S state
- Widget itemBuilder(
- BuildContext context,
- S state,
- int index
- Widget builder(
- BuildContext context,
- S state
- void listener(
- BuildContext context,
- S state
- void onLoaded(
- BuildContext context,
- S state
- void onLoadedCached(
- BuildContext context,
- S state
- void onError(
- BuildContext context,
- S state
- Widget additionalBuilder(
- BuildContext context,
- S state,
- Widget child
- void onInit(
- BuildContext context
- bool skipInitialOnInit = false,
- void onRefresh(
- BuildContext context
- void onLoadMore(
- BuildContext context
- B? providerValue,
- B provider(
- BuildContext context
- 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);