copyWithWrapped method
Account
copyWithWrapped({
- Wrapped<
String> ? id, - Wrapped<
String> ? name, - Wrapped<
AccountType> ? type, - Wrapped<
bool> ? onBudget, - Wrapped<
bool> ? closed, - Wrapped<
String?> ? note, - Wrapped<
num> ? balance, - Wrapped<
num> ? clearedBalance, - Wrapped<
num> ? unclearedBalance, - Wrapped<
String> ? transferPayeeId, - Wrapped<
bool?> ? directImportLinked, - Wrapped<
bool?> ? directImportInError, - Wrapped<
bool> ? deleted,
Implementation
Account copyWithWrapped(
{Wrapped<String>? id,
Wrapped<String>? name,
Wrapped<enums.AccountType>? type,
Wrapped<bool>? onBudget,
Wrapped<bool>? closed,
Wrapped<String?>? note,
Wrapped<num>? balance,
Wrapped<num>? clearedBalance,
Wrapped<num>? unclearedBalance,
Wrapped<String>? transferPayeeId,
Wrapped<bool?>? directImportLinked,
Wrapped<bool?>? directImportInError,
Wrapped<bool>? deleted}) {
return Account(
id: (id != null ? id.value : this.id),
name: (name != null ? name.value : this.name),
type: (type != null ? type.value : this.type),
onBudget: (onBudget != null ? onBudget.value : this.onBudget),
closed: (closed != null ? closed.value : this.closed),
note: (note != null ? note.value : this.note),
balance: (balance != null ? balance.value : this.balance),
clearedBalance: (clearedBalance != null
? clearedBalance.value
: this.clearedBalance),
unclearedBalance: (unclearedBalance != null
? unclearedBalance.value
: this.unclearedBalance),
transferPayeeId: (transferPayeeId != null
? transferPayeeId.value
: this.transferPayeeId),
directImportLinked: (directImportLinked != null
? directImportLinked.value
: this.directImportLinked),
directImportInError: (directImportInError != null
? directImportInError.value
: this.directImportInError),
deleted: (deleted != null ? deleted.value : this.deleted));
}