copyWith method

Monster copyWith({
  1. dynamic meta,
  2. String? key,
  3. String? name,
  4. String? description,
  5. String? instinct,
  6. List<Tag>? tags,
  7. List<String>? moves,
})

Implementation

Monster copyWith({
  dynamic meta,
  String? key,
  String? name,
  String? description,
  String? instinct,
  List<Tag>? tags,
  List<String>? moves,
}) =>
    Monster(
      meta: meta ?? this.meta,
      key: key ?? this.key,
      name: name ?? this.name,
      description: description ?? this.description,
      instinct: instinct ?? this.instinct,
      tags: tags ?? this.tags,
      moves: moves ?? this.moves,
    );