copyWith method

MortgageInterestRate copyWith({
  1. double? percentage,
  2. String? type,
})

Implementation

MortgageInterestRate copyWith({double? percentage, String? type}) {
  return MortgageInterestRate(
      percentage: percentage ?? this.percentage, type: type ?? this.type);
}