resetAll method

void resetAll()

Implementation

void resetAll() {
  cacheItems = [];
  void treeDeep(List<CityModel> items) {
    for (var item in items) {
      item.setSelected(false);
      if (item.children != null) {
        treeDeep(item.children);
      }
    }
  }

  for (var item in records) {
    item.setSelected(false);
    if (item.children != null) {
      treeDeep(item.children);
    }
  }
}