checkPhoneNumberLength function

bool checkPhoneNumberLength(
  1. String strippedNumber,
  2. CountryDialCode? country
)

Implementation

bool checkPhoneNumberLength(String strippedNumber, CountryDialCode? country) {
  if (country == null) {
    return false;
  }
  int length = strippedNumber.length;
  return country.phoneLength.contains(length);
}