copyWithWrapped method

Apr copyWithWrapped({
  1. Wrapped<double>? aprPercentage,
  2. Wrapped<AprAprType>? aprType,
  3. Wrapped<double?>? balanceSubjectToApr,
  4. Wrapped<double?>? interestChargeAmount,
})

Implementation

Apr copyWithWrapped(
    {Wrapped<double>? aprPercentage,
    Wrapped<enums.AprAprType>? aprType,
    Wrapped<double?>? balanceSubjectToApr,
    Wrapped<double?>? interestChargeAmount}) {
  return Apr(
      aprPercentage:
          (aprPercentage != null ? aprPercentage.value : this.aprPercentage),
      aprType: (aprType != null ? aprType.value : this.aprType),
      balanceSubjectToApr: (balanceSubjectToApr != null
          ? balanceSubjectToApr.value
          : this.balanceSubjectToApr),
      interestChargeAmount: (interestChargeAmount != null
          ? interestChargeAmount.value
          : this.interestChargeAmount));
}