getCountryCodeByIndex static method

String getCountryCodeByIndex(
  1. int index
)

Returns the ISO 3166-1 alpha-3 country code for an internal index.

Parameters

  • index: (int) Country index.

Returns

  • (String) ISO 3166-1 alpha-3 country code, or an empty string.

Implementation

static String getCountryCodeByIndex(final int index) {
  final OperationResult resultString = staticMethod(
    'MapDetails',
    'getCountryCodeByIndex',
    args: index,
  );

  return resultString['result'];
}