copyWith method
Category
copyWith({
- String? id,
- String? categoryGroupId,
- String? name,
- String? originalCategoryGroupId,
- String? note,
- num? budgeted,
- num? activity,
- num? balance,
- CategoryGoalType? goalType,
- DateTime? goalCreationMonth,
- num? goalTarget,
- DateTime? goalTargetMonth,
- int? goalPercentageComplete,
- int? goalMonthsToBudget,
- num? goalUnderFunded,
- num? goalOverallFunded,
- num? goalOverallLeft,
- bool? deleted,
Implementation
Category copyWith(
{String? id,
String? categoryGroupId,
String? name,
bool? hidden,
String? originalCategoryGroupId,
String? note,
num? budgeted,
num? activity,
num? balance,
enums.CategoryGoalType? goalType,
DateTime? goalCreationMonth,
num? goalTarget,
DateTime? goalTargetMonth,
int? goalPercentageComplete,
int? goalMonthsToBudget,
num? goalUnderFunded,
num? goalOverallFunded,
num? goalOverallLeft,
bool? deleted}) {
return Category(
id: id ?? this.id,
categoryGroupId: categoryGroupId ?? this.categoryGroupId,
name: name ?? this.name,
hidden: hidden ?? this.hidden,
originalCategoryGroupId:
originalCategoryGroupId ?? this.originalCategoryGroupId,
note: note ?? this.note,
budgeted: budgeted ?? this.budgeted,
activity: activity ?? this.activity,
balance: balance ?? this.balance,
goalType: goalType ?? this.goalType,
goalCreationMonth: goalCreationMonth ?? this.goalCreationMonth,
goalTarget: goalTarget ?? this.goalTarget,
goalTargetMonth: goalTargetMonth ?? this.goalTargetMonth,
goalPercentageComplete:
goalPercentageComplete ?? this.goalPercentageComplete,
goalMonthsToBudget: goalMonthsToBudget ?? this.goalMonthsToBudget,
goalUnderFunded: goalUnderFunded ?? this.goalUnderFunded,
goalOverallFunded: goalOverallFunded ?? this.goalOverallFunded,
goalOverallLeft: goalOverallLeft ?? this.goalOverallLeft,
deleted: deleted ?? this.deleted);
}