copyWith method
PoiItem
copyWith({
- String? adCode,
- String? adName,
- String? businessArea,
- String? cityCode,
- String? cityName,
- String? direction,
- int? distance,
- String? email,
- IndoorData? indoorData,
- bool? isIndoorMap,
- LatLng? latLonPoint,
- LatLng? enter,
- LatLng? exit,
- String? parkingType,
- List<
Photo> ? photos, - PoiExtension? poiExtension,
- String? poiId,
- String? postcode,
- String? provinceCode,
- String? provinceName,
- String? shopID,
- String? snippet,
- List<
SubPoiItem> ? subPois, - String? tel,
- String? title,
- String? typeCode,
- String? typeDes,
- String? website,
- String? gridCode,
Implementation
PoiItem copyWith({
String? adCode,
String? adName,
String? businessArea,
String? cityCode,
String? cityName,
String? direction,
int? distance,
String? email,
IndoorData? indoorData,
bool? isIndoorMap,
LatLng? latLonPoint,
LatLng? enter,
LatLng? exit,
String? parkingType,
List<Photo>? photos,
PoiExtension? poiExtension,
String? poiId,
String? postcode,
String? provinceCode,
String? provinceName,
String? shopID,
String? snippet,
List<SubPoiItem>? subPois,
String? tel,
String? title,
String? typeCode,
String? typeDes,
String? website,
String? gridCode,
}) {
return PoiItem(
adCode: adCode ?? this.adCode,
adName: adName ?? this.adName,
businessArea: businessArea ?? this.businessArea,
cityCode: cityCode ?? this.cityCode,
cityName: cityName ?? this.cityName,
direction: direction ?? this.direction,
distance: distance ?? this.distance,
email: email ?? this.email,
indoorData: indoorData ?? this.indoorData,
isIndoorMap: isIndoorMap ?? this.isIndoorMap,
latLonPoint: latLonPoint ?? this.latLonPoint,
enter: enter ?? this.enter,
exit: exit ?? this.exit,
parkingType: parkingType ?? this.parkingType,
photos: photos ?? this.photos,
poiExtension: poiExtension ?? this.poiExtension,
poiId: poiId ?? this.poiId,
postcode: postcode ?? this.postcode,
provinceCode: provinceCode ?? this.provinceCode,
provinceName: provinceName ?? this.provinceName,
shopID: shopID ?? this.shopID,
snippet: snippet ?? this.snippet,
subPois: subPois ?? this.subPois,
tel: tel ?? this.tel,
title: title ?? this.title,
typeCode: typeCode ?? this.typeCode,
typeDes: typeDes ?? this.typeDes,
website: website ?? this.website,
gridCode: gridCode ?? this.gridCode,
);
}