isValidNumber method

bool isValidNumber()

Implementation

bool isValidNumber() {
  Country country = getCountry(completeNumber);
  if (number.length < country.minLength) {
    return false;
  }

  if (number.length > country.maxLength) {
    return false;
  }
  return true;
}