convertHolidayOnlyListFromSource<S> static method

DateRemindList convertHolidayOnlyListFromSource<S>(
  1. List<S> source, {
  2. required Holiday exportHoliday(
    1. S
    ),
})

Convert to DateRemindList for Holiday only in the List

Implementation

static DateRemindList convertHolidayOnlyListFromSource<S>(List<S> source,
        {required Holiday Function(S) exportHoliday}) =>
    convertListFromSource(source,
        eventsCondition: (_) => false,
        holidayCondition: (_) => true,
        exportEvents: (_) => throw UnsupportedError(
            "This method is not suppose to making Events object"),
        exportHoliday: exportHoliday);