mockCityItems function

List<CityItem> mockCityItems()

Implementation

List<CityItem> mockCityItems() {
  List<CityItem> list = [];
  var cityNames = cityName.split(",");
  var i = 0;
  for (var element in cityNames) {
    list.add(CityItem(cityName: element, cityColor: _mockColor(i++)));
  }
  return list;
}