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