copyWith method
SavingsPot
copyWith(
{ - String? id,
- String? name,
- Money? target,
- Money? current,
- double? interestRate,
- bool? hasOwnAccountNumber,
- String? imageUrl,
- List<String>? memberIds,
- DateTime? targetDate,
- bool? isRoundUpDestination,
})
Implementation
SavingsPot copyWith({
String? id,
String? name,
Money? target,
Money? current,
double? interestRate,
bool? hasOwnAccountNumber,
String? imageUrl,
List<String>? memberIds,
DateTime? targetDate,
bool? isRoundUpDestination,
}) =>
SavingsPot(
id: id ?? this.id,
name: name ?? this.name,
target: target ?? this.target,
current: current ?? this.current,
interestRate: interestRate ?? this.interestRate,
hasOwnAccountNumber: hasOwnAccountNumber ?? this.hasOwnAccountNumber,
imageUrl: imageUrl ?? this.imageUrl,
memberIds: memberIds ?? this.memberIds,
targetDate: targetDate ?? this.targetDate,
isRoundUpDestination: isRoundUpDestination ?? this.isRoundUpDestination,
);