copyWith method

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

Implementation

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