getCitiesForState method

List<City> getCitiesForState(
  1. int stateId
)

Implementation

List<City> getCitiesForState(int stateId) =>
    _cities?.cities.where((city) => city.stateId == stateId).toList() ?? [];