holidays_us 1.0.3 copy "holidays_us: ^1.0.3" to clipboard
holidays_us: ^1.0.3 copied to clipboard

Generate the dates for multiple holidays within the United States

Holidays US #

Usage #

  var holidays = USHolidays();
  print(holidays.christmas(2020));
  print(holidays.getHolidayGenerator('christmas')!(2020));

A list of US holidays. You can get a holiday year generator by using the getHolidayGenerator(String) method which will return the equivalent of the holiday method. For example holidays.getHolidayGenerator('christmas')(2020) is the same as holidays.christmas(2020). `

Holiays available: #

  • Easter
  • Thanksgiving
  • Independence Day
  • Valentine's Day
  • Christmas
  • New Year's Day
  • Halloween
  • Columbus Day
  • Labor Day
  • Father's Day
  • Mother's Day
  • Memorial Day
  • President's Day
  • Martin Luther King Day
1
likes
160
pub points
58%
popularity

Publisher

verified publisherpetit.dev

Generate the dates for multiple holidays within the United States

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

date_generator

More

Packages that depend on holidays_us