startDateAdapter<T extends Every, V extends DateValidator> static method
Returns the start date considering the given every and validator base
process.
If the validator is valid for the date, it will be returned.
If not, the next date will be returned considering the every base
process.
Implementation
static DateTime startDateAdapter<T extends Every, V extends DateValidator>(
T every,
V validator,
DateTime date, {
required DateTime? limit,
}) {
if (validator.valid(date)) return date;
return next(every, date, limit: limit);
}