copyWith method
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,
})
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,
);
}