isEmail property
bool
get
isEmail
Checks if the string is a valid email address.
Uses a regular expression to verify if the string matches standard email format. Validates both local part (before @) and domain part (after @) of the email.
Returns true if the string is a valid email address, otherwise returns false.
Example:
'user@example.com'.isEmail; // true
'user.name+tag@example.co.uk'.isEmail; // true
'invalid@email'.isEmail; // false
Implementation
bool get isEmail {
return _isEmail(this);
}