isEmail static method

bool isEmail(
  1. String? value
)

Implementation

static bool isEmail(String? value) {
  if (isEmpty(value)) return false;
  return RegExp(r"^[a-zA-Z0-9.a-zA-Z0-9.!#$%&'*+-/=?^_`{|}~]+@[a-zA-Z0-9]+\.[a-zA-Z]+").hasMatch(value!);
}