daysInMonth property
DateInterval
get
daysInMonth
Implementation
DateInterval get daysInMonth {
var start = Date(year: year, month: month, day: 1);
return DateInterval(start: start, end: lastOfMonth());
}