copyWith method
Account
copyWith(
{ - String? id,
- String? name,
- AccountType? type,
- bool? onBudget,
- bool? closed,
- String? note,
- num? balance,
- num? clearedBalance,
- num? unclearedBalance,
- String? transferPayeeId,
- bool? directImportLinked,
- bool? directImportInError,
- bool? deleted,
})
Implementation
Account copyWith(
{String? id,
String? name,
enums.AccountType? type,
bool? onBudget,
bool? closed,
String? note,
num? balance,
num? clearedBalance,
num? unclearedBalance,
String? transferPayeeId,
bool? directImportLinked,
bool? directImportInError,
bool? deleted}) {
return Account(
id: id ?? this.id,
name: name ?? this.name,
type: type ?? this.type,
onBudget: onBudget ?? this.onBudget,
closed: closed ?? this.closed,
note: note ?? this.note,
balance: balance ?? this.balance,
clearedBalance: clearedBalance ?? this.clearedBalance,
unclearedBalance: unclearedBalance ?? this.unclearedBalance,
transferPayeeId: transferPayeeId ?? this.transferPayeeId,
directImportLinked: directImportLinked ?? this.directImportLinked,
directImportInError: directImportInError ?? this.directImportInError,
deleted: deleted ?? this.deleted);
}