getNationalDirectDialingPrefixForRegion static method

String getNationalDirectDialingPrefixForRegion(
  1. String regionCode,
  2. bool stripNonDigit
)

Implementation

static String getNationalDirectDialingPrefixForRegion(
    String regionCode, bool stripNonDigit) {
  final activationFactory =
      CreateActivationFactory(_className, IID_IPhoneNumberFormatterStatics);

  try {
    return IPhoneNumberFormatterStatics.fromRawPointer(activationFactory)
        .getNationalDirectDialingPrefixForRegion(regionCode, stripNonDigit);
  } finally {
    free(activationFactory);
  }
}