hours method

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

Format when time is in hours

Implementation

@override
String hours(int hours) {
  if (hours == 2) {
    return 'ساعتين';
  } else if (hours > 2 && hours < 11) {
    return '$hours ساعات';
  } else {
    return '$hours ساعة';
  }
}