copyWith method

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

Implementation

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