getName method
Return the country name corresponding to the country code given.
If the code is given, but it is not found in the list of known countries,
this method will throw an exception.
Implementation
String getName(String code) {
final String jscode = 'new Country({locale: "$locale"}).getName("$code")';
try {
final String result = ILibJS.instance.evaluate(jscode).stringResult;
return result;
} catch (e) {
throw ArgumentError('Country code $code is unknown');
}
}