isValidEmailAddress method
Checks the object is a String and is a valid email address
Implementation
AbstractRuleBuilder isValidEmailAddress({String? message}) {
return must(
(dynamic dyn) =>
dyn is String && CommonRegex.emailValidator.hasMatch(dyn),
message != null
? message
: useKeyAsElementName
? "$key must be a valid email address"
: "String must be a valid email address",
code: "notValidEmailAddress");
}