updateCircles method

void updateCircles()

The updateCircles function updates the circles on the map. It uses the typicalFoods map from the typical_foods.dart file. {@category Functions}

Implementation

void updateCircles() {
  typicalFoods.forEach((key, value) {
    final point = LatLng(value['latitude'], value['longitude']);
    addCircle(
      point.latitude,
      point.longitude,
      TypicalFood(
        id: value['id'],
        name: value['name'],
        image: value['image'],
        latitude: value['latitude'],
        longitude: value['longitude'],
        description: value['description'],
      ),
    );
  });
}