copyWith method
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);
}