copyWith method
WithdrawModel
copyWith(
{ - String? id,
- String? accountId,
- String? amount,
- String? bank,
- String? bankAgency,
- String? accountType,
- String? bankAccountNumber,
- String? createdAt,
- String? feedback,
- String? status,
- String? updatedAt,
})
Implementation
WithdrawModel copyWith({
String? id,
String? accountId,
String? amount,
String? bank,
String? bankAgency,
String? accountType,
String? bankAccountNumber,
String? createdAt,
String? feedback,
String? status,
String? updatedAt,
}) {
return WithdrawModel(
id: id ?? this.id,
accountId: accountId ?? this.accountId,
amount: amount ?? this.amount,
bank: bank ?? this.bank,
bankAgency: bankAgency ?? this.bankAgency,
accountType: accountType ?? this.accountType,
bankAccountNumber: bankAccountNumber ?? this.bankAccountNumber,
createdAt: createdAt ?? this.createdAt,
feedback: feedback ?? this.feedback,
status: status ?? this.status,
updatedAt: updatedAt ?? this.updatedAt,
);
}