email property
Implementation
static ValidatorFunction email = (dynamic? value) {
if (RegExp(
r"^[a-zA-Z0-9.a-zA-Z0-9.!#$%&'*+-/=?^_`{|}~]+@[a-zA-Z0-9]+\.[a-zA-Z]+")
.hasMatch(value)) {
return null;
}
return 'Invalid email id';
};