cIsPhoneNumber property
bool
get
cIsPhoneNumber
Checks if the string is a valid phone number.
Implementation
bool get cIsPhoneNumber {
var reg = RegExp(r'^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$');
if ((this).length > 16 || (this).length < 9) return false;
return reg.hasMatch(this);
}