AbstractItemConsumer<B extends AbstractItemBloc<S>, S extends AbstractItemState, TItem> constructor

AbstractItemConsumer<B extends AbstractItemBloc<S>, S extends AbstractItemState, TItem>({
  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. bool isLoading(
    1. BuildContext context,
    2. S state
    )?,
  7. bool isError(
    1. BuildContext context,
    2. S state
    )?,
  8. bool hasData(
    1. BuildContext context,
    2. S state
    )?,
  9. Widget? child,
  10. Widget listener(
    1. BuildContext context,
    2. S state
    )?,
  11. Widget builder(
    1. BuildContext context,
    2. S state,
    3. TItem item
    )?,
})

Implementation

AbstractItemConsumer({
  Key? key,
  this.onInit,
  this.skipInitialOnInit = false,
  this.errorBuilder,
  this.noDataBuilder,
  this.isLoading,
  this.isError,
  this.hasData,
  this.child,
  this.listener,
  this.builder,
}) : super(key: key);