cityByCode static method
Implementation
static UCity? cityByCode(String? code) {
if (codeType(code) != UCodeType.city) return null;
final UProvince? p = provinceByCode(code);
if (p == null) return null;
for (final UCity city in p.cities) {
if (city.code == code) return city;
}
return null;
}