tryCreate static method

void tryCreate(
  1. String regionCode,
  2. PhoneNumberFormatter phoneNumber
)

Implementation

static void tryCreate(String regionCode, PhoneNumberFormatter phoneNumber) {
  final activationFactory =
      CreateActivationFactory(_className, IID_IPhoneNumberFormatterStatics);

  try {
    return IPhoneNumberFormatterStatics.fromRawPointer(activationFactory)
        .tryCreate(regionCode, phoneNumber);
  } finally {
    free(activationFactory);
  }
}