telephone_check 0.0.4 telephone_check: ^0.0.4 copied to clipboard
This package will help you to validate if a telephone number is well written.
telephone_check #
This package will help you to validate if a telephone number is well written.
Example of use #
The function take a string that will be the telephone number to validate and will return true or false
if (telephoneCheck('+18095563254')) {
print('valid');
} else {
print('not valid');
}
var validTelephone = telephoneCheck('+18095563254');
if (validTelephone) {
print('valid');
} else {
print('not valid');
}
Note: #
You can use any type of telephones number and code are like :
- +1 215-855-0889 US
- +355 69 903 0544 AL
- +57 333 3717545 CO
- ect.