AbstractItemConsumer<B extends AbstractItemBloc<S> , S extends AbstractItemState, TItem> constructor
AbstractItemConsumer<B extends AbstractItemBloc<S> , S extends AbstractItemState, TItem> ({
- Key? key,
- void onInit(
- BuildContext context
- bool skipInitialOnInit = false,
- Widget errorBuilder(
- BuildContext context,
- void onInit(),
- S state
- Widget noDataBuilder(
- BuildContext context,
- void onInit(),
- S state
- bool isLoading(
- BuildContext context,
- S state
- bool isError(
- BuildContext context,
- S state
- bool hasData(
- BuildContext context,
- S state
- Widget? child,
- Widget listener(
- BuildContext context,
- S state
- Widget builder(
- BuildContext context,
- S state,
- 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);