isLeapYear property
bool
get
isLeapYear
Return whether it is leap year. 是否是闰年
Implementation
bool get isLeapYear {
return this % 4 == 0 && this % 100 != 0 || this % 400 == 0;
}
Return whether it is leap year. 是否是闰年
bool get isLeapYear {
return this % 4 == 0 && this % 100 != 0 || this % 400 == 0;
}