isCityInDistrict function
Returns true if the city belongs to that district, otherwise false.
Implementation
bool isCityInDistrict(int cityId, int districtId) {
final city = getCityById(cityId);
if (city == null) return false;
return city.districtId == districtId;
}