copyWith method

BudgetState copyWith({
  1. List<BudgetItem>? items,
  2. double? netTotal,
  3. double? marginPercent,
  4. 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,
  );
}