second method
Print amount
second for the corresponding locale. The unit is abbreviated
if abbreviated
is set to true.
Implementation
@override
String second(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 'ثواني';
}
}