part of 'home_bloc.dart';

@freezed
class HomeState with _$HomeState {
  const factory HomeState({
    required DashboardAnalytic dashboard,
    required Option<AnalyticFailure> failureOptionDashboard,
    @Default(false) bool isFetching,
  }) = _HomeState;

  factory HomeState.initial() => HomeState(
    dashboard: DashboardAnalytic.empty(),
    failureOptionDashboard: none(),
  );
}
