copyWith method

Deity copyWith({
  1. String? name,
  2. Gender? gender,
  3. DeityType? deityType,
  4. List<String>? domains,
  5. Alignment? alignment,
  6. String? depiction,
  7. Race? worshipedBy,
  8. String? worshipers,
  9. String? shrinesRarity,
  10. String? positiveAttribute,
  11. 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,
  );
}