minute method

  1. @override
String minute(
  1. int amount, [
  2. bool abbreviated = true
])
override

Print amount minute for the corresponding locale. The unit is abbreviated if abbreviated is set to true.

Implementation

@override
String minute(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 'دقائق';
  }
}