displayName property
String
get
displayName
Returns a human-readable name for this difficulty level.
Implementation
String get displayName {
switch (this) {
case DifficultyLevel.easy:
return 'Easy';
case DifficultyLevel.medium:
return 'Medium';
case DifficultyLevel.hard:
return 'Hard';
}
}