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

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

Constructs an instance of AbstractItemBuilder.

Implementation

const AbstractItemBuilder({
  super.key,
  this.onInit,
  this.skipInitialOnInit = false,
  this.showCachedDataWarningIcon = true,
  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,
});