isEmail property

bool get isEmail

Returns true if string is a valid email address

Implementation

bool get isEmail => this != null && _emailRegex.hasMatch(this!.toLowerCase());