copyWith method

PickupAddress copyWith(
  1. {int? id,
  2. int? user_id,
  3. double? latitude,
  4. double? longitude,
  5. String? address,
  6. String? detailed_address,
  7. String? created_at,
  8. String? updated_at,
  9. String? deleted_at}
)

Implementation

PickupAddress copyWith({
  int? id,
  int? user_id,
  double? latitude,
  double? longitude,
  String? address,
  String? detailed_address,
  String? created_at,
  String? updated_at,
  String? deleted_at,
}) {
  return PickupAddress(
    id: id ?? this.id,
    user_id: user_id ?? this.user_id,
    latitude: latitude ?? this.latitude,
    longitude: longitude ?? this.longitude,
    address: address ?? this.address,
    detailed_address: detailed_address ?? this.detailed_address,
    created_at: created_at ?? this.created_at,
    updated_at: updated_at ?? this.updated_at,
    deleted_at: deleted_at ?? this.deleted_at,
  );
}