adjustToWorkday static method
Adjusts a date
to the next or previous workday.
Implementation
static DateTime adjustToWorkday(DateTime date, {required bool isNext}) {
const workdays = EveryWeekday.workdays;
if (workdays.valid(date)) return date;
if (isNext) return workdays.next(date);
return workdays.previous(date);
}