validateEmail function

bool validateEmail(
  1. String email
)

validateEmail validates an email against a regex

Implementation

bool validateEmail(String email) {
  return emailValidator.hasMatch(email);
}