date static method
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);