daysInMonth static method

int daysInMonth(
  1. int year,
  2. int month
)

daysInMonth method

Implementation

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