isEmail property
bool
get
isEmail
Implementation
bool get isEmail {
return RegExp(
r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$',
).hasMatch(this);
}
bool get isEmail {
return RegExp(
r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$',
).hasMatch(this);
}