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