copyWith method

ReGeocodePoi copyWith({
  1. String? id,
  2. String? name,
  3. String? type,
  4. String? tel,
  5. String? direction,
  6. String? distance,
  7. String? location,
  8. String? address,
  9. String? poiWeight,
  10. String? businessArea,
})

Implementation

ReGeocodePoi copyWith({
  String? id,
  String? name,
  String? type,
  String? tel,
  String? direction,
  String? distance,
  String? location,
  String? address,
  String? poiWeight,
  String? businessArea,
}) {
  return ReGeocodePoi(
    id: id ?? this.id,
    name: name ?? this.name,
    type: type ?? this.type,
    tel: tel ?? this.tel,
    direction: direction ?? this.direction,
    distance: distance ?? this.distance,
    location: location ?? this.location,
    address: address ?? this.address,
    poiWeight: poiWeight ?? this.poiWeight,
    businessArea: businessArea ?? this.businessArea,
  );
}