startDate<T extends EveryDateValidator> static method
Returns the next DateTime that matches the Every pattern.
If the date is a DateTime that matches the Every pattern, it will
be returned.
If the date is not a DateTime that matches the Every pattern, next
will be called to generate a new one.
Implementation
static DateTime startDate<T extends EveryDateValidator>(
T every,
DateTime date, {
required DateTime? limit,
}) {
if (every is! LimitedEveryDateValidator) return every.startDate(date);
return every.startDate(date, limit: limit);
}