copyWith method

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

Implementation

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