dateBeforeFromString static method

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

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