Heatmap constructor
const
Heatmap({
- required HeatmapId heatmapId,
- required List<
WeightedLatLng> data, - bool dissipating = true,
- HeatmapGradient? gradient,
- double? maxIntensity,
- double opacity = _defaultOpacity,
- required HeatmapRadius radius,
- int minimumZoomIntensity = _defaultMinimumZoomIntensity,
- 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);