part of 'product_analytic_loader_bloc.dart';

@freezed
class ProductAnalyticLoaderState with _$ProductAnalyticLoaderState {
  factory ProductAnalyticLoaderState({
    required ProductAnalytic productAnalytic,
    required Option<AnalyticFailure> failureOption,
    @Default(false) bool isFetching,
  }) = _ProductAnalyticLoaderState;

  factory ProductAnalyticLoaderState.initial() => ProductAnalyticLoaderState(
    productAnalytic: ProductAnalytic.empty(),
    failureOption: none(),
  );
}
