copyWith method

SearchListingData copyWith(
  1. {num? id,
  2. String? name,
  3. String? address,
  4. String? city,
  5. String? state,
  6. String? country,
  7. String? latitude,
  8. String? longitude,
  9. String? postalCode,
  10. String? description,
  11. String? businessImage,
  12. String? status,
  13. num? isOpen,
  14. String? distance}
)

Implementation

SearchListingData copyWith({
  num? id,
  String? name,
  String? address,
  String? city,
  String? state,
  String? country,
  String? latitude,
  String? longitude,
  String? postalCode,
  String? description,
  String? businessImage,
  String? status,
  num? isOpen,
  String? distance,
}) =>
    SearchListingData(
      id: id ?? this.id,
      name: name ?? this.name,
      address: address ?? this.address,
      city: city ?? this.city,
      state: state ?? this.state,
      country: country ?? this.country,
      latitude: latitude ?? this.latitude,
      longitude: longitude ?? this.longitude,
      postalCode: postalCode ?? this.postalCode,
      description: description ?? this.description,
      businessImage: businessImage ?? this.businessImage,
      status: status ?? this.status,
      isOpen: isOpen ?? this.isOpen,
      distance: distance ?? this.distance,
    );