getCitiesByPostcode function

List<Cities> getCitiesByPostcode(
  1. String postcode
)

Implementation

List<Cities> getCitiesByPostcode(String postcode) {
  return slCities.where((location) => location.postcode == postcode).toList();
}