copyWith method
Order
copyWith({
- int? id,
- String? vendorOrderId,
- dynamic reason,
- int? displayId,
- int? stage,
- String? paymentType,
- List<
Destination> ? origin, - List<
Destination> ? destination, - dynamic returnAddress,
- Pricing? pricing,
- Distances? distances,
- Delivery? delivery,
- Vendor? vendor,
- dynamic courier,
- dynamic trace,
- DateTime? createdAt,
Implementation
Order copyWith({
int? id,
String? vendorOrderId,
dynamic reason,
int? displayId,
int? stage,
String? paymentType,
List<Destination>? origin,
List<Destination>? destination,
dynamic returnAddress,
Pricing? pricing,
Distances? distances,
Delivery? delivery,
Vendor? vendor,
dynamic courier,
dynamic trace,
DateTime? createdAt,
}) =>
Order(
id: id ?? this.id,
vendorOrderId: vendorOrderId ?? this.vendorOrderId,
reason: reason ?? this.reason,
displayId: displayId ?? this.displayId,
stage: stage ?? this.stage,
paymentType: paymentType ?? this.paymentType,
origin: origin ?? this.origin,
destination: destination ?? this.destination,
returnAddress: returnAddress ?? this.returnAddress,
pricing: pricing ?? this.pricing,
distances: distances ?? this.distances,
delivery: delivery ?? this.delivery,
vendor: vendor ?? this.vendor,
courier: courier ?? this.courier,
trace: trace ?? this.trace,
createdAt: createdAt ?? this.createdAt,
);