copyWith method

WithdrawModel copyWith({
  1. String? id,
  2. String? accountId,
  3. String? amount,
  4. String? bank,
  5. String? bankAgency,
  6. String? accountType,
  7. String? bankAccountNumber,
  8. String? createdAt,
  9. String? feedback,
  10. String? status,
  11. 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,
  );
}