0 purchases
colombia holidays
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);
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.