isLeapYear property

bool get isLeapYear

A leap year is a year with an extra day—February 29—which is added nearly every four years to the calendar year. In an ordinary year, there are 365 days in the year, but in a leap year, there are 366 days. The extra day is added to the calendar every four years so that our calendar stays synchronized with the astronomical seasons.

Implementation

bool get isLeapYear => DateHelper().leapYear(millisecondsSinceEpoch);