isValidateEmail property
bool
get
isValidateEmail
Checks whether the given string is a valid email address or not
Implementation
bool get isValidateEmail {
if (isEmptyOrNull) return false;
const emailRegex =
'^([\\w\\d\\-\\+]+)(\\.+[\\w\\d\\-\\+%]+)*@([\\w\\-]+\\.){1,5}(([A-Za-z]){2,30}|xn--[A-Za-z0-9]{1,26})\$';
var regExp = RegExp(emailRegex);
return regExp.hasMatch(this!.toLowerCase().trim());
}