isEmail property
bool
get
isEmail
Returns true if the string is a valid email format.
Implementation
bool get isEmail => RegExp(
r'^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$',
).hasMatch(trim());