copyWith method

Apr copyWith({
  1. double? aprPercentage,
  2. AprAprType? aprType,
  3. double? balanceSubjectToApr,
  4. double? interestChargeAmount,
})

Implementation

Apr copyWith(
    {double? aprPercentage,
    enums.AprAprType? aprType,
    double? balanceSubjectToApr,
    double? interestChargeAmount}) {
  return Apr(
      aprPercentage: aprPercentage ?? this.aprPercentage,
      aprType: aprType ?? this.aprType,
      balanceSubjectToApr: balanceSubjectToApr ?? this.balanceSubjectToApr,
      interestChargeAmount:
          interestChargeAmount ?? this.interestChargeAmount);
}