copyWith method
Deity
copyWith(
{ - String? name,
- Gender? gender,
- DeityType? deityType,
- List<String>? domains,
- Alignment? alignment,
- String? depiction,
- Race? worshipedBy,
- String? worshipers,
- String? shrinesRarity,
- String? positiveAttribute,
- String? negativeAttribute,
})
Implementation
Deity copyWith({
String? name,
Gender? gender,
DeityType? deityType,
List<String>? domains,
Alignment? alignment,
String? depiction,
Race? worshipedBy,
String? worshipers,
String? shrinesRarity,
String? positiveAttribute,
String? negativeAttribute,
}) {
return Deity(
name: name ?? this.name,
gender: gender ?? this.gender,
deityType: deityType ?? this.deityType,
domains: domains ?? this.domains,
alignment: alignment ?? this.alignment,
depiction: depiction ?? this.depiction,
worshipedBy: worshipedBy ?? this.worshipedBy,
worshipers: worshipers ?? this.worshipers,
shrinesRarity: shrinesRarity ?? this.shrinesRarity,
positiveAttribute: positiveAttribute ?? this.positiveAttribute,
negativeAttribute: negativeAttribute ?? this.negativeAttribute,
);
}