getDaysInMonth static method
Returns number of days in a given Ethiopian month
Implementation
static int getDaysInMonth(int year, int month) {
if (month >= 1 && month <= 12) {
return 30;
} else if (month == 13) {
return isLeapYear(year) ? 6 : 5;
} else {
throw ArgumentError("Invalid Ethiopian month: $month");
}
}