copyWith method
PlaceDetails
copyWith({
- List<
AddressComponent> ? addressComponents, - String? adrAddress,
- String? businessStatus,
- CurrentOpeningHours? currentOpeningHours,
- EditorialSummary? editorialSummary,
- String? formattedAddress,
- Geometry? geometry,
- String? icon,
- String? iconBackgroundColor,
- String? iconMaskBaseUri,
- String? name,
- OpeningHours? openingHours,
- List<
Photo> ? photos, - String? placeId,
- PlusCode? plusCode,
- double? rating,
- String? reference,
- List<
Review> ? reviews, - List<
String> ? types, - String? url,
- int? userRatingsTotal,
- int? utcOffset,
- String? vicinity,
- String? website,
- bool? wheelchairAccessibleEntrance,
Implementation
PlaceDetails copyWith({
List<AddressComponent>? addressComponents,
String? adrAddress,
String? businessStatus,
CurrentOpeningHours? currentOpeningHours,
EditorialSummary? editorialSummary,
String? formattedAddress,
Geometry? geometry,
String? icon,
String? iconBackgroundColor,
String? iconMaskBaseUri,
String? name,
OpeningHours? openingHours,
List<Photo>? photos,
String? placeId,
PlusCode? plusCode,
double? rating,
String? reference,
List<Review>? reviews,
List<String>? types,
String? url,
int? userRatingsTotal,
int? utcOffset,
String? vicinity,
String? website,
bool? wheelchairAccessibleEntrance,
}) {
return PlaceDetails(
addressComponents: addressComponents ?? this.addressComponents,
adrAddress: adrAddress ?? this.adrAddress,
businessStatus: businessStatus ?? this.businessStatus,
currentOpeningHours: currentOpeningHours ?? this.currentOpeningHours,
editorialSummary: editorialSummary ?? this.editorialSummary,
formattedAddress: formattedAddress ?? this.formattedAddress,
geometry: geometry ?? this.geometry,
icon: icon ?? this.icon,
iconBackgroundColor: iconBackgroundColor ?? this.iconBackgroundColor,
iconMaskBaseUri: iconMaskBaseUri ?? this.iconMaskBaseUri,
name: name ?? this.name,
openingHours: openingHours ?? this.openingHours,
photos: photos ?? this.photos,
placeId: placeId ?? this.placeId,
plusCode: plusCode ?? this.plusCode,
rating: rating ?? this.rating,
reference: reference ?? this.reference,
reviews: reviews ?? this.reviews,
types: types ?? this.types,
url: url ?? this.url,
userRatingsTotal: userRatingsTotal ?? this.userRatingsTotal,
utcOffset: utcOffset ?? this.utcOffset,
vicinity: vicinity ?? this.vicinity,
website: website ?? this.website,
wheelchairAccessibleEntrance:
wheelchairAccessibleEntrance ?? this.wheelchairAccessibleEntrance,
);
}