copyWithWrapped method
Earnings
copyWithWrapped({
- Wrapped<
List< ? subtotals,EarningsTotal> ?> - Wrapped<
List< ? totals,EarningsTotal> ?> - Wrapped<
List< ? breakdown,EarningsBreakdown> ?> - Wrapped<
EarningsTotal?> ? total,
Implementation
Earnings copyWithWrapped(
{Wrapped<List<EarningsTotal>?>? subtotals,
Wrapped<List<EarningsTotal>?>? totals,
Wrapped<List<EarningsBreakdown>?>? breakdown,
Wrapped<EarningsTotal?>? total}) {
return Earnings(
subtotals: (subtotals != null ? subtotals.value : this.subtotals),
totals: (totals != null ? totals.value : this.totals),
breakdown: (breakdown != null ? breakdown.value : this.breakdown),
total: (total != null ? total.value : this.total));
}