isEmail function

bool isEmail(
  1. Object? value
)

Returns true if value represents an e-mail address.

Implementation

bool isEmail(Object? value) {
  return value is String && value.contains('@') && regExpEmail.hasMatch(value);
}