copyWith method

Poi copyWith({
  1. String? parent,
  2. String? address,
  3. String? distance,
  4. String? pCode,
  5. String? adcode,
  6. String? pName,
  7. String? cityName,
  8. String? type,
  9. String? typeCode,
  10. String? adName,
  11. String? cityCode,
  12. String? name,
  13. LatLng? location,
  14. String? id,
})

Implementation

Poi copyWith({
  String? parent,
  String? address,
  String? distance,
  String? pCode,
  String? adcode,
  String? pName,
  String? cityName,
  String? type,
  String? typeCode,
  String? adName,
  String? cityCode,
  String? name,
  LatLng? location,
  String? id,
}) {
  return Poi(
    parent: parent ?? this.parent,
    address: address ?? this.address,
    distance: distance ?? this.distance,
    pCode: pCode ?? this.pCode,
    adcode: adcode ?? this.adcode,
    pName: pName ?? this.pName,
    cityName: cityName ?? this.cityName,
    type: type ?? this.type,
    typeCode: typeCode ?? this.typeCode,
    adName: adName ?? this.adName,
    cityCode: cityCode ?? this.cityCode,
    name: name ?? this.name,
    location: location ?? this.location,
    id: id ?? this.id,
  );
}