copyWith method

NewDeliveryRequest copyWith({
  1. Address? pickup_address,
  2. Address? delivery_address,
  3. String? recipient_name,
  4. String? recipient_mobile,
  5. String? item_type,
  6. String? pickup_time,
})

Implementation

NewDeliveryRequest copyWith({
  Address? pickup_address,
  Address? delivery_address,
  String? recipient_name,
  String? recipient_mobile,
  String? item_type,
  String? pickup_time,
}) {
  return NewDeliveryRequest(
    pickup_address: pickup_address ?? this.pickup_address,
    delivery_address: delivery_address ?? this.delivery_address,
    recipient_name: recipient_name ?? this.recipient_name,
    recipient_mobile: recipient_mobile ?? this.recipient_mobile,
    item_type: item_type ?? this.item_type,
    pickup_time: pickup_time ?? this.pickup_time,
  );
}