isLeapYear property
bool
isLeapYear
Is the given date in the leap year?
Implementation
bool get isLeapYear => year % 4 == 0 && (year % 100 != 0 || year % 400 == 0);
Is the given date in the leap year?
bool get isLeapYear => year % 4 == 0 && (year % 100 != 0 || year % 400 == 0);