isEmail static method

bool isEmail(
  1. String text
)

Tests whether text is a valid email address.

Implementation

static bool isEmail(String text) {
  var rc = false;
  if (text.isNotEmpty) {
    rc = regExprEMail.firstMatch(text) != null;
  }
  return rc;
}