regionAlpha2ToAlpha3 static method

String? regionAlpha2ToAlpha3(
  1. String? alpha2
)

Return the ISO-3166 alpha3 equivalent region code for the given ISO 3166 alpha2 region code.
If the given alpha2 code is not found, this function returns its argument unchanged.

Implementation

static String? regionAlpha2ToAlpha3(String? alpha2) {
  return a2toa3regmap[alpha2] ?? alpha2;
}