copyWith method
WalletTransaction
copyWith({
- String? transactionId,
- String? reference,
- WalletTransactionType? type,
- WalletTransactionAmount? amount,
- WalletTransactionCounterparty? counterparty,
- WalletTransactionStatus? status,
- DateTime? createdAt,
- DateTime? lastStatusUpdate,
- String? paymentId,
Implementation
WalletTransaction copyWith(
{String? transactionId,
String? reference,
enums.WalletTransactionType? type,
WalletTransactionAmount? amount,
WalletTransactionCounterparty? counterparty,
enums.WalletTransactionStatus? status,
DateTime? createdAt,
DateTime? lastStatusUpdate,
String? paymentId}) {
return WalletTransaction(
transactionId: transactionId ?? this.transactionId,
reference: reference ?? this.reference,
type: type ?? this.type,
amount: amount ?? this.amount,
counterparty: counterparty ?? this.counterparty,
status: status ?? this.status,
createdAt: createdAt ?? this.createdAt,
lastStatusUpdate: lastStatusUpdate ?? this.lastStatusUpdate,
paymentId: paymentId ?? this.paymentId);
}