dateBefore static method

ValidationRule<DateTime> dateBefore(
  1. DateTime date, {
  2. String? message,
})

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);