copyWith method

CharacterClass copyWith({
  1. dynamic meta,
  2. String? name,
  3. String? key,
  4. String? description,
  5. Dice? damageDice,
  6. int? load,
  7. int? hp,
  8. AlignmentValues? alignments,
  9. List<String>? bonds,
  10. List<String>? flags,
  11. List<GearChoice>? gearChoices,
  12. bool? isSpellcaster,
})

Implementation

CharacterClass copyWith({
  dynamic meta,
  String? name,
  String? key,
  String? description,
  Dice? damageDice,
  int? load,
  int? hp,
  AlignmentValues? alignments,
  List<String>? bonds,
  List<String>? flags,
  List<GearChoice>? gearChoices,
  bool? isSpellcaster,
}) =>
    CharacterClass(
      meta: meta ?? this.meta,
      name: name ?? this.name,
      key: key ?? this.key,
      description: description ?? this.description,
      damageDice: damageDice ?? this.damageDice,
      load: load ?? this.load,
      hp: hp ?? this.hp,
      alignments: alignments ?? this.alignments,
      bonds: bonds ?? this.bonds,
      flags: flags ?? this.flags,
      gearChoices: gearChoices ?? this.gearChoices,
      isSpellcaster: isSpellcaster ?? this.isSpellcaster,
    );