isEmail property

bool isEmail

Check if string is an email

Implementation

bool get isEmail => hasMatch(r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$');