/// Effort level for tasks.
///
/// IMPORTANT: Never reorder or remove values - intEnum stores the .index.
/// Always add new values at the END.
enum EffortLevel {
  low, // 0
  medium, // 1
  high, // 2
}

/// German display labels for effort levels.
extension EffortLevelLabel on EffortLevel {
  String label() {
    switch (this) {
      case EffortLevel.low:
        return 'Gering';
      case EffortLevel.medium:
        return 'Mittel';
      case EffortLevel.high:
        return 'Hoch';
    }
  }
}
