copyWith method
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,
})
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,
);