isLeapYear property
bool
get
isLeapYear
checks isLeapYear
Implementation
bool get isLeapYear {
if (this == null) return false;
return (this!.year % 4 == 0) &&
((this!.year % 100 != 0) || (this!.year % 400 == 0));
}