convertCountryIso static method
- String code,
- ISOCodeType type
Convert country iso code ( ISO2 <-> ISO3 )
Parameters
- IN code The country ISO code to be converted
- IN type The result country ISO code type
Returns
- The converted country ISO code.
Implementation
static String convertCountryIso(String code, ISOCodeType type) {
final OperationResult resultString = staticMethod(
'ISOCodeConversions',
'convertCountryIso',
args: <String, dynamic>{
'code': code,
'type': type.id,
},
);
final String result = resultString['result'];
return result;
}