isValidEmail method
Validates if the string is a properly formatted email address
Implementation
bool isValidEmail() {
final emailRegExp = RegExp(r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$');
return emailRegExp.hasMatch(this);
}
Validates if the string is a properly formatted email address
bool isValidEmail() {
final emailRegExp = RegExp(r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$');
return emailRegExp.hasMatch(this);
}