daysInMonth method
static int daysInMonth(int year, int month) => (month == DateTime.february && isLeapYear(year)) ? 29 : _daysInMonth[month - 1];