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;
Returns the number of days in this year (366 for leap years, 365 otherwise).
int get daysInYear => isLeapYear ? 366 : 365;