daysCount static method
Implementation
static int daysCount(int year, int month) {
List<int> monthLength = [31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
if (isLeapYear(year) == true) {
monthLength[1] = 29;
} else {
monthLength[1] = 28;
}
return monthLength[month - 1];
}