part of 'category_analytic_loader_bloc.dart';

@freezed
class CategoryAnalyticLoaderState with _$CategoryAnalyticLoaderState {
  factory CategoryAnalyticLoaderState({
    required CategoryAnalytic categoryAnalytic,
    required Option<AnalyticFailure> failureOption,
    @Default(false) bool isFetching,
  }) = _CategoryAnalyticLoaderState;

  factory CategoryAnalyticLoaderState.initial() => CategoryAnalyticLoaderState(
    categoryAnalytic: CategoryAnalytic.empty(),
    failureOption: none(),
  );
}
