part of 'dashboard_analytic_loader_bloc.dart';

@freezed
class DashboardAnalyticLoaderState with _$DashboardAnalyticLoaderState {
  const factory DashboardAnalyticLoaderState({
    required DashboardAnalytic dashboardAnalytic,
    required Option<AnalyticFailure> failureOptionDashboardAnalytic,
    @Default(false) bool isFetching,
  }) = _DashboardAnalyticLoaderState;

  factory DashboardAnalyticLoaderState.initial() =>
      DashboardAnalyticLoaderState(
        dashboardAnalytic: DashboardAnalytic.empty(),
        failureOptionDashboardAnalytic: none(),
      );
}
