isValidPhone method
Implementation
bool isValidPhone() {
if (length == 0) {
return false;
}
bool mobileValid =
RegExp(r'^(03|09|08|07|05|02)+([0-9]{8})$').hasMatch(this);
return mobileValid;
}
bool isValidPhone() {
if (length == 0) {
return false;
}
bool mobileValid =
RegExp(r'^(03|09|08|07|05|02)+([0-9]{8})$').hasMatch(this);
return mobileValid;
}