part of 'profit_loss_loader_bloc.dart';

@freezed
class ProfitLossLoaderState with _$ProfitLossLoaderState {
  const factory ProfitLossLoaderState({
    required ProfitLossAnalytic profitLoss,
    required Option<AnalyticFailure> failureOptionProfitLoss,
    @Default(false) bool isFetching,
  }) = _ProfitLossLoaderState;

  factory ProfitLossLoaderState.initial() => ProfitLossLoaderState(
    profitLoss: ProfitLossAnalytic.empty(),
    failureOptionProfitLoss: none(),
  );
}
