isEmail static method
Implementation
static bool isEmail(String email) {
final Pattern pattern =
r'^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{1,}))$';
final RegExp regex = RegExp(pattern as String);
log(regex.hasMatch(email).toString());
return regex.hasMatch(email);
}