dateTime static method
FormFieldValidator that requires the field's value to be a valid date.
Parameters:
errorText
The error message when the date is invalid.checkNullOrEmpty
Whether to check for null or empty values.
Implementation
static FormFieldValidator<DateTime?> dateTime({
String? errorText,
bool checkNullOrEmpty = true,
}) => DateTimeValidator(
errorText: errorText,
checkNullOrEmpty: checkNullOrEmpty,
).validate;