copyWith method

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

Implementation

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