allAvailablePlaces method

Future<List<Place>> allAvailablePlaces()

Implementation

Future<List<Place>> allAvailablePlaces() async {
  List<Place> doom = await doomAllInfo();
  List<Place> doomRoom = await doomRoomAllInfo();
  List<Place> doomFacil = await doomFacilAllInfo();
  List<Place> outsideFacil = await outsideFacilAllInfo();

  List<Place> res = [];

  for (Place p in doom) {
    res.add(p);
  }
  for (Place p in doomRoom) {
    res.add(p);
  }
  for (Place p in doomFacil) {
    res.add(p);
  }
  for (Place p in outsideFacil) {
    res.add(p);
  }

  return res;
}