isLeapYear method

bool isLeapYear()

Implementation

bool isLeapYear() {
  final y = year();

  return y & 3 == 0 && (y % 25 != 0 || y & 15 == 0);
}