copyWith method
Implementation
LevelInfo copyWith({
Optional<LevelId?>? id,
String? name,
List<LevelId>? linkedLevelIds
}) {
return LevelInfo(
id: id != null ? id.value : this.id,
name: name ?? this.name,
linkedLevelIds: linkedLevelIds ?? this.linkedLevelIds
);
}