isValidEmail property

bool get isValidEmail

Determines whether the string is a valid email address.

Implementation

bool get isValidEmail =>
    RegExp(r'^[A-Z0-9a-z\._%\+\-]+@[A-Za-z0-9\-]+\.{1}[A-Za-z]{2,64}')
        .hasMatch(this);