isEmail property

bool isEmail

验证邮箱

Implementation

bool get isEmail =>
    RegExp(r'^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$').hasMatch(this);