copyWith method

DeductionsBreakdown copyWith({
  1. double? currentAmount,
  2. String? description,
  3. String? isoCurrencyCode,
  4. String? unofficialCurrencyCode,
  5. double? ytdAmount,
})

Implementation

DeductionsBreakdown copyWith(
    {double? currentAmount,
    String? description,
    String? isoCurrencyCode,
    String? unofficialCurrencyCode,
    double? ytdAmount}) {
  return DeductionsBreakdown(
      currentAmount: currentAmount ?? this.currentAmount,
      description: description ?? this.description,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      unofficialCurrencyCode:
          unofficialCurrencyCode ?? this.unofficialCurrencyCode,
      ytdAmount: ytdAmount ?? this.ytdAmount);
}