hour method
Print amount
hour for the corresponding locale. The unit is abbreviated
if abbreviated
is set to true.
Implementation
@override
String hour(int amount, [bool abbreviated = true]) {
if (abbreviated) {
return 'س';
} else {
if (amount == 1) {
return 'ساعة';
} else if (amount == 2) {
return 'ساعتين';
} else if (amount > 2 && amount < 11) {
return 'ساعات';
} else if (amount > 10) {
return 'ساعة';
}
return 'ساعات';
}
}