isEmail method

bool isEmail()

Checks if the string is a valid email.

Implementation

bool isEmail() {
  return Patterns.email.hasMatch(this);
}