getCitiesByDistrictId function

List<Cities> getCitiesByDistrictId(
  1. int districtId
)

Implementation

List<Cities> getCitiesByDistrictId(int districtId) {
  return slCities
      .where((location) => location.districtId == districtId)
      .toList();
}