isEmail function

bool isEmail(
  1. String str
)

check if the string str is an email

Implementation

bool isEmail(String str) {
  return _email.hasMatch(str.toLowerCase());
}