copyWith method
Earnings
copyWith({
- List<
EarningsTotal> ? subtotals, - List<
EarningsTotal> ? totals, - List<
EarningsBreakdown> ? breakdown, - EarningsTotal? total,
Implementation
Earnings copyWith(
{List<EarningsTotal>? subtotals,
List<EarningsTotal>? totals,
List<EarningsBreakdown>? breakdown,
EarningsTotal? total}) {
return Earnings(
subtotals: subtotals ?? this.subtotals,
totals: totals ?? this.totals,
breakdown: breakdown ?? this.breakdown,
total: total ?? this.total);
}