copyWith method

LevelInfo copyWith({
  1. LevelId? id,
  2. String? name,
})

Implementation

LevelInfo copyWith({
  LevelId? id,
  String? name
}) {
  return LevelInfo(
    id: id ?? this.id,
    name: name ?? this.name
  );
}