searchCitiesByNameEn function

List<Cities> searchCitiesByNameEn(
  1. String name
)

Implementation

List<Cities> searchCitiesByNameEn(String name) {
  return slCities
      .where((location) =>
          location.nameEn.toLowerCase().contains(name.toLowerCase()))
      .toList();
}