isLeapYear static method

bool isLeapYear(
  1. DateTime dateTime
)

Return whether it is leap year.

Implementation

static bool isLeapYear(DateTime dateTime) {
  return isLeapYearByYear(dateTime.year);
}