daysInMonth property

int get daysInMonth

The number of days in the current month.

Implementation

int get daysInMonth {
  return const [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month - 1] ?? (isLeapYear ? 29 : 28);
}