copyWith method
Heatmap
copyWith({
- List<
WeightedLatLng> ? dataParam, - bool? dissipatingParam,
- HeatmapGradient? gradientParam,
- double? maxIntensityParam,
- double? opacityParam,
- HeatmapRadius? radiusParam,
- int? minimumZoomIntensityParam,
- int? maximumZoomIntensityParam,
Creates a new Heatmap object whose values are the same as this instance, unless overwritten by the specified parameters.
Implementation
Heatmap copyWith({
List<WeightedLatLng>? dataParam,
bool? dissipatingParam,
HeatmapGradient? gradientParam,
double? maxIntensityParam,
double? opacityParam,
HeatmapRadius? radiusParam,
int? minimumZoomIntensityParam,
int? maximumZoomIntensityParam,
}) {
return Heatmap(
heatmapId: heatmapId,
data: dataParam ?? data,
dissipating: dissipatingParam ?? dissipating,
gradient: gradientParam ?? gradient,
maxIntensity: maxIntensityParam ?? maxIntensity,
opacity: opacityParam ?? opacity,
radius: radiusParam ?? radius,
minimumZoomIntensity: minimumZoomIntensityParam ?? minimumZoomIntensity,
maximumZoomIntensity: maximumZoomIntensityParam ?? maximumZoomIntensity,
);
}