isValidateEmail method

bool isValidateEmail()

Checks whether the given string is a valid email address or not

Implementation

bool 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})\$';
  // return regExp.hasMatch(this!.toLowerCase().trim());
  return hasMatch(this!.toLowerCase().trim(), RegExpPatterns.email);
}