daysInYear property

int daysInYear

The number of days in this year (365 or 366).

Implementation

int get daysInYear => isLeapYear ? 366 : 365;