isEmail property

bool get isEmail

Implementation

bool get isEmail => RegExp(r'^[\w.+\-]+@[\w\-]+(\.[\w\-]+)*\.[a-zA-Z]{2,}$').hasMatch(this);