isEmail property
bool
get
isEmail
Returns true if the string is a valid email address.
Implementation
bool get isEmail =>
!isNullOrEmpty &&
RegExp(r"^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$").hasMatch(this!);