dateBefore static method
Creates a DateBefore validation rule.
This rule checks if a date is before a specified date
.
It can include a custom validation message.
Implementation
static ValidationRule<DateTime> dateBefore(DateTime date,
{String? message}) =>
DateBefore(date, message: message);