hours method
Format when time is in hours
Implementation
@override
String hours(int hours) {
if (hours == 1) {
return '1 Stunde';
} else if (hours > 1 && hours < 11) {
return 'etwa $hours Stunden';
} else {
return '$hours Stunden';
}
}