isEmail static method
Email validation with comprehensive regex pattern
Validates standard email format. Returns false for null, empty, or invalid emails.
Example:
if (FSValidators.isEmail('user@example.com')) {
print('Valid email');
}
Implementation
static bool isEmail(String? value) {
final cleanValue = value?.trim();
if (cleanValue == null || cleanValue.isEmpty) return false;
return _emailRegex.hasMatch(cleanValue);
}