date static method

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

Creates a Date validation rule.

This rule checks if a string can be parsed as a valid date. It can include a custom validation message.

Implementation

static ValidationRule<String> date({String? message}) =>
    Date(message: message);