hours method

  1. @override
String hours(
  1. int hours
)
override

Format when time is in hours

Implementation

@override
String hours(int hours) {
  if (hours == 1) {
    return 'una hora';
  } else if (hours > 1 && hours < 11) {
    return 'aproximadament $hours hores';
  } else {
    return '$hours hores';
  }
}