copyWith method

Guild copyWith({
  1. String? name,
  2. Npc? leader,
  3. GuildType? guildType,
  4. String? reputation,
  5. String? history,
  6. Emblem? emblem,
  7. String? motto,
  8. List<String>? specialties,
  9. List<String>? quests,
  10. 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,
  );
}