copyWith method

PaymentOrder copyWith({
  1. num? id,
  2. String? uuid,
  3. String? orderNumber,
  4. num? price,
  5. String? countryCode,
  6. num? createdAt,
  7. num? vat,
  8. String? proDisplayName,
  9. String? proUniqueId,
  10. String? userDisplayName,
  11. String? userUniqueId,
  12. String? paymentStatusLabel,
  13. num? deliveryAddressId,
  14. List<OrderItems>? items,
  15. OrderDeliveryAddress? deliveryAddress,
})

Implementation

PaymentOrder copyWith({
  num? id,
  String? uuid,
  String? orderNumber,
  num? price,
  String? countryCode,
  num? createdAt,
  num? vat,
  String? proDisplayName,
  String? proUniqueId,
  String? userDisplayName,
  String? userUniqueId,
  String? paymentStatusLabel,
  num? deliveryAddressId,
  List<OrderItems>? items,
  OrderDeliveryAddress? deliveryAddress,
}) =>
    PaymentOrder(
      id: id ?? this.id,
      uuid: uuid ?? this.uuid,
      orderNumber: orderNumber ?? this.orderNumber,
      price: price ?? this.price,
      countryCode: countryCode ?? this.countryCode,
      createdAt: createdAt ?? this.createdAt,
      vat: vat ?? this.vat,
      proDisplayName: proDisplayName ?? this.proDisplayName,
      proUniqueId: proUniqueId ?? this.proUniqueId,
      userDisplayName: userDisplayName ?? this.userDisplayName,
      userUniqueId: userUniqueId ?? this.userUniqueId,
      paymentStatusLabel: paymentStatusLabel ?? this.paymentStatusLabel,
      deliveryAddressId: deliveryAddressId ?? this.deliveryAddressId,
      items: items ?? this.items,
      deliveryAddress: deliveryAddress ?? this.deliveryAddress,
    );