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