copyWith method

Landscape copyWith({
  1. String? name,
  2. String? location,
  3. String? weather,
  4. LandscapeType? landscapeType,
  5. List<String>? features,
  6. List<String>? resources,
  7. List<String>? encounters,
  8. String? knownFor,
  9. String? size,
  10. String? travelRate,
})

Implementation

Landscape copyWith({
  String? name,
  String? location,
  String? weather,
  LandscapeType? landscapeType,
  List<String>? features,
  List<String>? resources,
  List<String>? encounters,
  String? knownFor,
  String? size,
  String? travelRate,
}) {
  return Landscape(
    name: name ?? this.name,
    location: location ?? this.location,
    weather: weather ?? this.weather,
    landscapeType: landscapeType ?? this.landscapeType,
    features: features ?? this.features,
    resources: resources ?? this.resources,
    encounters: encounters ?? this.encounters,
    knownFor: knownFor ?? this.knownFor,
    size: size ?? this.size,
    travelRate: travelRate ?? this.travelRate,
  );
}