past<E> static method
Validates that the date is in the past (before now).
DateRules.past(error: 'Date must be in the past')
Implementation
static Rule<DateTime, E> past<E>({required E error}) => PredicateRule(
predicate: (value) => value.isBefore(DateTime.now()),
error: error,
);