daysInYear property

int get daysInYear

Returns the number of days in this year (366 for leap years, 365 otherwise).

Implementation

int get daysInYear => isLeapYear ? 366 : 365;