ProductVariantBloc constructor
ProductVariantBloc(
- ProductVariantState initialState,
- ProductVariantDataRepository productVariantDataRepository,
- ProjectResourceDataRepository projectResourceDataRepository
The constructor for ProductVariantBloc
.
It initializes the bloc with an empty state and sets up the event handler for loading product variants.
Implementation
ProductVariantBloc(
super.initialState,
this.productVariantDataRepository,
this.projectResourceDataRepository,
) {
on(_handleLoad);
}