daysInYear property
int
daysInYear
The number of days in this year (365
or 366
).
Implementation
int get daysInYear => isLeapYear ? 366 : 365;
The number of days in this year (365
or 366
).
int get daysInYear => isLeapYear ? 366 : 365;