copyWith method

Pending copyWith({
  1. String? orderId,
  2. String? orderType,
  3. String? address,
  4. String? sender,
  5. String? receiver,
  6. double? amountTransfer,
  7. double? amountFee,
  8. int? timeStamp,
})

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,
  );
}