leapYear property
Whether this year is a leap year.
LocalDateTime(2020).leapYear; // true
LocalDateTime(2021).leapYear; // false
Implementation
@useResult bool get leapYear => _native.leapYear;
Whether this year is a leap year.
LocalDateTime(2020).leapYear; // true
LocalDateTime(2021).leapYear; // false
@useResult bool get leapYear => _native.leapYear;