getDistrict static method
Implementation
static Future<AddressDistrict?> getDistrict(BuildContext context, String districtId) async {
if (_districtMap.isEmpty) {
var provinces = await loadAddressData(context);
if (provinces.isNotEmpty) {
return _districtMap[districtId];
}
return null;
} else {
return _districtMap[districtId];
}
}