Returns true if str looks like a valid email address.
true
str
static bool isEmail(String? str) { if (str.isNullOrEmpty) return false; return _emailPattern.hasMatch(str!); }