copyWithWrapped method

IncomeBreakdown copyWithWrapped({
  1. Wrapped<IncomeBreakdownType?>? type,
  2. Wrapped<double?>? rate,
  3. Wrapped<double?>? hours,
  4. Wrapped<double?>? total,
})

Implementation

IncomeBreakdown copyWithWrapped(
    {Wrapped<enums.IncomeBreakdownType?>? type,
    Wrapped<double?>? rate,
    Wrapped<double?>? hours,
    Wrapped<double?>? total}) {
  return IncomeBreakdown(
      type: (type != null ? type.value : this.type),
      rate: (rate != null ? rate.value : this.rate),
      hours: (hours != null ? hours.value : this.hours),
      total: (total != null ? total.value : this.total));
}