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