copyWith method
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,
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,
);