copyWith method
Implementation
Location copyWith({
String? name,
Npc? owner,
LocationType? type,
String? zone,
List<String>? outsideDescription,
String? buildingDescription,
List<Goods>? goods,
}) {
return Location(
name: name ?? this.name,
owner: owner ?? this.owner,
type: type ?? this.type,
zone: zone ?? this.zone,
outsideDescription: outsideDescription ?? this.outsideDescription,
buildingDescription: buildingDescription ?? this.buildingDescription,
goods: goods ?? this.goods,
);
}