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