copyWith method

GeoCodingResponse copyWith({
  1. int? placeId,
  2. String? lat,
  3. String? lng,
  4. String? displayName,
  5. String? name,
  6. int? placeRank,
  7. String? category,
  8. String? type,
  9. double? importance,
  10. String? osmType,
  11. int? osmId,
})

Implementation

GeoCodingResponse copyWith({
  int? placeId,
  String? lat,
  String? lng,
  String? displayName,
  String? name,
  int? placeRank,
  String? category,
  String? type,
  double? importance,
  String? osmType,
  int? osmId,
}) =>
    GeoCodingResponse(
      placeId: placeId ?? this.placeId,
      lat: lat ?? this.lat,
      lng: lng ?? this.lng,
      displayName: displayName ?? this.displayName,
      name: name ?? this.name,
      placeRank: placeRank ?? this.placeRank,
      category: category ?? this.category,
      type: type ?? this.type,
      importance: importance ?? this.importance,
      osmType: osmType ?? this.osmType,
      osmId: osmId ?? this.osmId,
    );