copyWith method
Guild
copyWith(
{ - String? name,
- Npc? leader,
- GuildType? guildType,
- String? reputation,
- String? history,
- Emblem? emblem,
- String? motto,
- List<String>? specialties,
- List<String>? quests,
- List<Npc>? notableMembers,
})
Implementation
Guild copyWith({
String? name,
Npc? leader,
GuildType? guildType,
String? reputation,
String? history,
Emblem? emblem,
String? motto,
List<String>? specialties,
List<String>? quests,
List<Npc>? notableMembers,
}) {
return Guild(
name: name ?? this.name,
leader: leader ?? this.leader,
guildType: guildType ?? this.guildType,
reputation: reputation ?? this.reputation,
history: history ?? this.history,
emblem: emblem ?? this.emblem,
motto: motto ?? this.motto,
specialties: specialties ?? this.specialties,
quests: quests ?? this.quests,
notableMembers: notableMembers ?? this.notableMembers,
);
}