part of 'sales_analytic_loader_bloc.dart';

@freezed
class SalesAnalyticLoaderState with _$SalesAnalyticLoaderState {
  factory SalesAnalyticLoaderState({
    required SalesAnalytic salesAnalytic,
    required Option<AnalyticFailure> failureOption,
    @Default(false) bool isFetching,
  }) = _SalesAnalyticLoaderState;

  factory SalesAnalyticLoaderState.initial() => SalesAnalyticLoaderState(
    failureOption: none(),
    salesAnalytic: SalesAnalytic.empty(),
  );
}
