part of 'dashboard_analytic_loader_bloc.dart';

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

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