AbstractItemBuilder<B extends StateStreamableSource<S>, S extends AbstractItemState> constructor

AbstractItemBuilder<B extends StateStreamableSource<S>, S extends AbstractItemState>({
  1. Key? key,
  2. void onInit(
    1. BuildContext context
    )?,
  3. bool skipInitialOnInit = false,
  4. Widget errorBuilder(
    1. BuildContext context,
    2. void onInit(),
    3. S state
    )?,
  5. Widget noDataBuilder(
    1. BuildContext context,
    2. void onInit(),
    3. S state
    )?,
  6. Widget loaderBuilder(
    1. BuildContext context,
    2. S state
    )?,
  7. bool isLoading(
    1. BuildContext context,
    2. S state
    )?,
  8. bool isError(
    1. BuildContext context,
    2. S state
    )?,
  9. bool hasData(
    1. BuildContext context,
    2. S state
    )?,
  10. Widget? child,
  11. Widget builder(
    1. BuildContext context,
    2. S state
    )?,
  12. void listener(
    1. BuildContext context,
    2. S state
    )?,
  13. void onLoaded(
    1. BuildContext context,
    2. S state
    )?,
  14. void onLoadedCached(
    1. BuildContext context,
    2. S state
    )?,
  15. void onError(
    1. BuildContext context,
    2. S state
    )?,
  16. B? providerValue,
  17. B provider(
    1. BuildContext context
    )?,
  18. List<SingleChildWidget>? providers,
})

Implementation

AbstractItemBuilder({
  Key? key,
  this.onInit,
  this.skipInitialOnInit = false,
  this.errorBuilder,
  this.noDataBuilder,
  this.loaderBuilder,
  this.isLoading,
  this.isError,
  this.hasData,
  this.child,
  this.builder,
  this.listener,
  this.onLoaded,
  this.onLoadedCached,
  this.onError,
  this.providerValue,
  this.provider,
  this.providers,
}) : super(key: key);