static bool isValidEmail(String email) { final regex = RegExp(r'^[\w\.\+-]+@[a-zA-Z0-9-]+\.[a-zA-Z]{2,}$'); return regex.hasMatch(email); }