getMonthName static method
String
getMonthName(
{ - required int monthNumber,
})
Implementation
static String getMonthName({required int monthNumber}) {
switch (monthNumber) {
case 1:
return "فروردین";
case 2:
return "اردیبهشت";
case 3:
return "خرداد";
case 4:
return "تیر";
case 5:
return "مرداد";
case 6:
return "شهریور";
case 7:
return "مهر";
case 8:
return "آبان";
case 9:
return "آذر";
case 10:
return "دی";
case 11:
return "بهمن";
case 12:
return "اسفند";
default:
throw DateException("Invalid month number($monthNumber)");
}
}