isLeapYear method

bool isLeapYear()

Checks if the current year is a leap year using DateTimeUtils.isLeapYear

Returns: bool: True if the year is a leap year, false otherwise.

Implementation

bool isLeapYear() => DateTimeUtils.isLeapYear(year: year);