Skip to content

reyesmfabian/colombia_holidays_package

Repository files navigation

Colombia's holidays Check Package.

Features

[x] Get the Holidays of a year.
[x] Check if a date is a holiday.

Usage

Create an instance of ColombiaHolidays and call the methods you need.

void main() async {
  ColombiaHolidays holidays = ColombiaHolidays();

// Get all holidays by Year
  final holidaysByYear = await holidays.getHolidays(year: 2020);
  // Result is a List of Holidays
  print(holidaysByYear);

// Check if a date is a holiday
  final isHoliday = await holidays.isHoliday(day: 20, month: 12, year: 2022);
  // Result is a bool
  print(isHoliday);
}

About

Flutter package to get to know Colombia's holidays.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages