arabicMonth function

String arabicMonth(
  1. dynamic month
)

String method arabicMonth takes the variable month and return String value MonthName

Implementation

String arabicMonth(var month) {
  switch (month) {
    case 1:
    case "Muharram":
      return "محرم";
    case 2:
    case "Safar":
      return "صفر";
    case 3:
    case "Rabi' Al-Awwal":
      return "ربيع الاول";
    case 4:
    case "Rabi' Al-Thani":
      return "ربيع الثاني";
    case 5:
    case "Jumada Al-Awwal":
      return "جمادى الأول";
    case 6:
    case "Jumada Al-Thani":
      return "جمادى الثاني";
    case 7:
    case "Rajab":
      return "رجب";
    case 8:
    case "Sha'aban":
      return "شعبان";
    case 9:
    case "Ramadan":
      return "رمضان";
    case 10:
    case "Shawwal":
      return "شوال";
    case 11:
    case "Dhu Al-Qi'dah":
      return "ذو القعدة";
    case 12:
    case "Dhu Al-Hijjah":
      return "ذو الحجة";
    default:
      return "";
  }
}