copyWith method
- List<
BudgetItem> ? items, - double? netTotal,
- double? marginPercent,
- bool? includeTax,
Implementation
BudgetState copyWith({
List<BudgetItem>? items,
double? netTotal,
double? marginPercent,
bool? includeTax,
}) {
return BudgetState(
items: items ?? this.items,
netTotal: netTotal ?? this.netTotal,
marginPercent: marginPercent ?? this.marginPercent,
taxPercent: taxPercent,
includeTax: includeTax ?? this.includeTax,
);
}