/// Returns true if the given String is a valid email address. bool isValidEmail(String text) { return RegExp( r'(?[a-zA-Z0-9]+)' r'@' r'(?[a-zA-Z0-9]+)' r'\.' r'(?[a-zA-Z0-9]+)', ).hasMatch(text); }