isDateTime function
Returns a IValidator that checks if the given value is a DateTime
For better performance and readability, use the $isDateTime variable directly.
Implementation
IValidator isDateTime({String? message}) => isType<DateTime>(message: message);