copyWith method

Place copyWith({
  1. String? id,
  2. String? type,
  3. String? text,
  4. String? placeName,
  5. double? latitude,
  6. double? longitude,
})

Implementation

Place copyWith({
  String? id,
  String? type,
  String? text,
  String? placeName,
  double? latitude,
  double? longitude,
}) {
  return Place(
    id: id ?? this.id,
    type: type ?? this.type,
    text: text ?? this.text,
    placeName: placeName ?? this.placeName,
    latitude: latitude ?? this.latitude,
    longitude: longitude ?? this.longitude,
  );
}