removeHeatmaps method

void removeHeatmaps(
  1. Set<HeatmapId> heatmapIdsToRemove
)

Removes a set of HeatmapIds from the cache.

Implementation

void removeHeatmaps(Set<HeatmapId> heatmapIdsToRemove) {
  for (final heatmapId in heatmapIdsToRemove) {
    final HeatmapController? heatmapController =
        _heatmapIdToController[heatmapId];
    heatmapController?.remove();
    _heatmapIdToController.remove(heatmapId);
  }
}