validateEmail static method
Validates email address using EmailFormatRule.
Returns true
if email is valid, otherwise false
.
Example:
IstValidator.validateEmail("hi@spee.dev"); // true
IstValidator.validateEmail("hi@spee"); // false
IstValidator.validateEmail("hi@spee."); // false
Implementation
static bool validateEmail(String email) {
return EmailFormatRule().validate(email) == null;
}