PhoneNumber.countryCode constructor

  1. @Deprecated('Use `PhoneNumber.isoCode` instead')
PhoneNumber.countryCode(
  1. String countryCode,
  2. String nationalNumber
)

Create PhoneNumber instance using country found by given countryCode and nationalNumber

Implementation

@Deprecated('Use `PhoneNumber.isoCode` instead')
factory PhoneNumber.countryCode(String countryCode, String nationalNumber) {
  return PhoneNumber(Country.fromCode(countryCode), nationalNumber);
}