daysInMonths constant

List<int> const daysInMonths

Days in each month for both leap and non-leap years.

Implementation

static const List<int> daysInMonths = [
  31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
];