countryCodeOf static method
Implementation
static String? countryCodeOf(String? code) {
switch (codeType(code)) {
case UCodeType.country:
return null;
case UCodeType.province:
return code!.substring(0, 3);
case UCodeType.city:
return "001";
case UCodeType.unknown:
return null;
}
}