isLeapYear property
bool
get
isLeapYear
True if this date is on a leap year.
Implementation
bool get isLeapYear {
return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0);
}
True if this date is on a leap year.
bool get isLeapYear {
return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0);
}