class DifficultyUtil { static List get difficulties { return List.generate(Difficulty.values.length, (index) => Difficulty.values.elementAt(index).name); } } enum Difficulty { veryEasy, easy, intermediate, hard, veryHard }