validateEmail static method

bool validateEmail(
  1. String email
)

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;
}