copyWith method

CreditCardOptions copyWith({
  1. bool? active,
  2. String? softDescriptor,
  3. bool? installments,
  4. bool? installmentsPassInterest,
  5. int? maxInstallments,
  6. int? maxInstallmentsWithoutInterest,
  7. bool? twoStepTransaction,
})

Implementation

CreditCardOptions copyWith({
  bool? active,
  String? softDescriptor,
  bool? installments,
  bool? installmentsPassInterest,
  int? maxInstallments,
  int? maxInstallmentsWithoutInterest,
  bool? twoStepTransaction,
}) {
  return CreditCardOptions(
    active: active ?? this.active,
    softDescriptor: softDescriptor ?? this.softDescriptor,
    installments: installments ?? this.installments,
    installmentsPassInterest: installmentsPassInterest ?? this.installmentsPassInterest,
    maxInstallments: maxInstallments ?? this.maxInstallments,
    maxInstallmentsWithoutInterest: maxInstallmentsWithoutInterest ?? this.maxInstallmentsWithoutInterest,
    twoStepTransaction: twoStepTransaction ?? this.twoStepTransaction,
  );
}