isValidEmail method

bool isValidEmail()

Implementation

bool isValidEmail() {
  final emailRegex = RegExp(r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,}$');
  return emailRegex.hasMatch(this);
}