copyWith method

Deductions copyWith({
  1. List<Total>? subtotals,
  2. List<DeductionsBreakdown>? breakdown,
  3. List<Total>? totals,
  4. DeductionsTotal? total,
})

Implementation

Deductions copyWith(
    {List<Total>? subtotals,
    List<DeductionsBreakdown>? breakdown,
    List<Total>? totals,
    DeductionsTotal? total}) {
  return Deductions(
      subtotals: subtotals ?? this.subtotals,
      breakdown: breakdown ?? this.breakdown,
      totals: totals ?? this.totals,
      total: total ?? this.total);
}