Returns true if the year is a leap year.
year
Dates.leapYear(2020); // true Dates.leapYear(2022); // false
@useResult static bool leapYear(int year) => year % 4 == 0 && (year % 100 != 0 || year % 400 == 0);