copyWith method

GrowthTrend copyWith({
  1. String? id,
  2. double? cashGrowth,
  3. int? companyBudgetGrowth,
  4. double? companyReputationGrowth,
  5. double? employNumberGrowth,
  6. double? employSatisfactionGrowth,
})

Implementation

GrowthTrend copyWith({
  String? id,
  double? cashGrowth,
  int? companyBudgetGrowth,
  double? companyReputationGrowth,
  double? employNumberGrowth,
  double? employSatisfactionGrowth,
}) {
  return GrowthTrend(
    id: id ?? this.id,
    cashGrowth: cashGrowth ?? this.cashGrowth,
    companyBudgetGrowth: companyBudgetGrowth ?? this.companyBudgetGrowth,
    companyReputationGrowth:
        companyReputationGrowth ?? this.companyReputationGrowth,
    employNumberGrowth: employNumberGrowth ?? this.employNumberGrowth,
    employSatisfactionGrowth:
        employSatisfactionGrowth ?? this.employSatisfactionGrowth,
  );
}