isEmail static method

bool isEmail(
  1. String s
)

Checks whether the given string s is a email address

Implementation

static bool isEmail(String s) {
  var regExp = RegExp(emailRegex);
  return regExp.hasMatch(s);
}