copyWith method

Heatmap copyWith({
  1. List<WeightedLatLng>? dataParam,
  2. bool? dissipatingParam,
  3. HeatmapGradient? gradientParam,
  4. double? maxIntensityParam,
  5. double? opacityParam,
  6. HeatmapRadius? radiusParam,
  7. int? minimumZoomIntensityParam,
  8. 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,
  );
}