copyWith method

BudgetConfig copyWith({
  1. LaborCostType? laborCostType,
  2. double? laborRate,
  3. double? laborTime,
  4. double? fixedLaborCost,
  5. double? smallMaterialPercent,
})

Implementation

BudgetConfig copyWith({
  LaborCostType? laborCostType,
  double? laborRate,
  double? laborTime,
  double? fixedLaborCost,
  double? smallMaterialPercent,
}) {
  return BudgetConfig(
    laborCostType: laborCostType ?? this.laborCostType,
    laborRate: laborRate ?? this.laborRate,
    laborTime: laborTime ?? this.laborTime,
    fixedLaborCost: fixedLaborCost ?? this.fixedLaborCost,
    smallMaterialPercent: smallMaterialPercent ?? this.smallMaterialPercent,
  );
}