dateBeforeFromString static method
Creates a DateBefore validation rule from a string date representation.
This rule checks if a date is before a specified date represented as a string. It can include a custom validation message.
Implementation
static ValidationRule<DateTime?> dateBeforeFromString(String date,
{String? format, String? message}) =>
DateBefore.fromString(date, format: format, message: message);