Heatmap constructor

const Heatmap({
  1. required HeatmapId heatmapId,
  2. required List<WeightedLatLng> data,
  3. bool dissipating = true,
  4. HeatmapGradient? gradient,
  5. double? maxIntensity,
  6. double opacity = _defaultOpacity,
  7. required HeatmapRadius radius,
  8. int minimumZoomIntensity = _defaultMinimumZoomIntensity,
  9. int maximumZoomIntensity = _defaultMaximumZoomIntensity,
})

Creates an immutable representation of a Heatmap to draw on GoogleMap.

Implementation

const Heatmap({
  required this.heatmapId,
  required this.data,
  this.dissipating = true,
  this.gradient,
  this.maxIntensity,
  this.opacity = _defaultOpacity,
  required this.radius,
  this.minimumZoomIntensity = _defaultMinimumZoomIntensity,
  this.maximumZoomIntensity = _defaultMaximumZoomIntensity,
}) : assert(opacity >= 0 && opacity <= 1);