copyWith method

MonthDetail copyWith({
  1. List<Category>? categories,
  2. DateTime? month,
  3. String? note,
  4. num? income,
  5. num? budgeted,
  6. num? activity,
  7. num? toBeBudgeted,
  8. int? ageOfMoney,
  9. bool? deleted,
})

Implementation

MonthDetail copyWith(
    {List<Category>? categories,
    DateTime? month,
    String? note,
    num? income,
    num? budgeted,
    num? activity,
    num? toBeBudgeted,
    int? ageOfMoney,
    bool? deleted}) {
  return MonthDetail(
      categories: categories ?? this.categories,
      month: month ?? this.month,
      note: note ?? this.note,
      income: income ?? this.income,
      budgeted: budgeted ?? this.budgeted,
      activity: activity ?? this.activity,
      toBeBudgeted: toBeBudgeted ?? this.toBeBudgeted,
      ageOfMoney: ageOfMoney ?? this.ageOfMoney,
      deleted: deleted ?? this.deleted);
}