HolidayData class

Preloaded official gazetted public holidays for Bikram Sambat years.

Important Note: In Nepal, lunar-tithi based festivals (Dashain, Tihar, Shivaratri, Holi, Buddha Jayanti, etc.) and government gazetted leaves are declared year-by-year by the Ministry of Home Affairs. This dataset contains verified historical and current gazetted public holidays.

Developers or applications requiring holidays for unlisted or future years can register custom holidays or configure dynamic holiday datasets via NepaliHolidayService.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

officialHolidays → Map<int, List<NepaliHoliday>>
Map of year-specific holidays keyed by Bikram Sambat year.
final

Static Methods

getFixedHolidaysForYear(int year) → List<NepaliHoliday>
Returns fixed national holidays for years that do not have dedicated gazetted entries.