emailIsValid static method
Implementation
static bool emailIsValid(String email) {
if (isNullOrEmpty(email)) {
return false;
}
return RegExp(
r"^[a-zA-Z0-9.a-zA-Z0-9.!#$%&'*+-/=?^_`{|}~]+@[a-zA-Z0-9]+\.[a-zA-Z]+")
.hasMatch(email);
}