isEmail static method

bool isEmail(
  1. String str
)

邮箱验证

Implementation

static bool isEmail(String str) {
  return RegExp(r"^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$")
      .hasMatch(str);
}