ProductVariantBloc constructor

ProductVariantBloc(
  1. ProductVariantState initialState,
  2. ProductVariantDataRepository productVariantDataRepository,
  3. 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);
}