copyWith method
Implementation
Pending copyWith({
String? orderId,
String? orderType,
String? address,
String? sender,
String? receiver,
double? amountTransfer,
double? amountFee,
int? timeStamp,
}) {
return Pending(
orderId: orderId ?? this.orderId,
orderType: orderType ?? this.orderType,
sender: sender ?? this.sender,
receiver: receiver ?? this.receiver,
amountTransfer: amountTransfer ?? this.amountTransfer,
amountFee: amountFee ?? this.amountFee,
);
}