daysOfYear property
int
daysOfYear
Number of days in year
Implementation
int get daysOfYear {
if (this == null) {
return -1;
} else {
final firstMonth = DateTime(year, 1, 1);
final lastMonth = DateTime(year, 12, 31);
return firstMonth.difference(lastMonth).inDays;
}
}