copyWith method

Move copyWith({
  1. dynamic meta,
  2. String? key,
  3. String? name,
  4. String? description,
  5. String? explanation,
  6. List<Dice>? dice,
  7. List<EntityReference>? classKeys,
  8. List<Tag>? tags,
  9. MoveCategory? category,
})

Implementation

Move copyWith({
  dynamic meta,
  String? key,
  String? name,
  String? description,
  String? explanation,
  List<Dice>? dice,
  List<EntityReference>? classKeys,
  List<Tag>? tags,
  MoveCategory? category,
}) =>
    Move(
      meta: meta ?? this.meta,
      key: key ?? this.key,
      name: name ?? this.name,
      description: description ?? this.description,
      explanation: explanation ?? this.explanation,
      dice: dice ?? this.dice,
      classKeys: classKeys ?? this.classKeys,
      tags: tags ?? this.tags,
      category: category ?? this.category,
    );