part of 'profit_loss_analytic_loader_bloc.dart';

@freezed
class ProfitLossAnalyticLoaderState with _$ProfitLossAnalyticLoaderState {
  factory ProfitLossAnalyticLoaderState({
    required ProfitLossAnalytic profitLossAnalytic,
    required Option<AnalyticFailure> failureOption,
    @Default(false) bool isFetching,
  }) = _ProfitLossAnalyticLoaderState;

  factory ProfitLossAnalyticLoaderState.initial() =>
      ProfitLossAnalyticLoaderState(
        profitLossAnalytic: ProfitLossAnalytic.empty(),
        failureOption: none(),
      );
}
