part of 'invoice_details_bloc.dart';

@immutable
class InvoiceDetailsState {
  final String? showErrorPopup;
  final bool inLoading;
  final bool success;
  final InvoiceModel? invoiceModel;

  const InvoiceDetailsState( {this.showErrorPopup, this.inLoading = false,this.invoiceModel, this.success = false});

  InvoiceDetailsState copyWith({String? showErrorPopup, bool? inLoading, InvoiceModel? invoiceModel, bool? success}) {
    return InvoiceDetailsState(
      showErrorPopup: showErrorPopup ?? this.showErrorPopup,
      inLoading: inLoading ?? false,
      success: success ?? this.success,
      invoiceModel: invoiceModel ?? this.invoiceModel,
    );
  }
}
