9 lines
256 B
Dart
9 lines
256 B
Dart
class DifficultyUtil {
|
|
static List<String> get difficulties {
|
|
return List<String>.generate(Difficulty.values.length,
|
|
(index) => Difficulty.values.elementAt(index).name);
|
|
}
|
|
}
|
|
|
|
enum Difficulty { veryEasy, easy, intermediate, hard, veryHard }
|