copyWith method

GeoJsonSourceOptions copyWith({
  1. double? minZoom,
  2. double? maxZoom,
  3. double? tolerance,
  4. double? clusterMaxZoom,
  5. Object? clusterProperties = _unchanged,
  6. int? buffer,
  7. int? clusterRadius,
  8. int? clusterMinPoints,
  9. bool? lineMetrics,
  10. bool? cluster,
})

A copy of this value with the given members replaced.

Implementation

GeoJsonSourceOptions copyWith({
  double? minZoom,
  double? maxZoom,
  double? tolerance,
  double? clusterMaxZoom,
  Object? clusterProperties = _unchanged,
  int? buffer,
  int? clusterRadius,
  int? clusterMinPoints,
  bool? lineMetrics,
  bool? cluster,
}) => GeoJsonSourceOptions(
  minZoom: minZoom ?? this.minZoom,
  maxZoom: maxZoom ?? this.maxZoom,
  tolerance: tolerance ?? this.tolerance,
  clusterMaxZoom: clusterMaxZoom ?? this.clusterMaxZoom,
  clusterProperties: identical(clusterProperties, _unchanged)
      ? this.clusterProperties
      : clusterProperties,
  buffer: buffer ?? this.buffer,
  clusterRadius: clusterRadius ?? this.clusterRadius,
  clusterMinPoints: clusterMinPoints ?? this.clusterMinPoints,
  lineMetrics: lineMetrics ?? this.lineMetrics,
  cluster: cluster ?? this.cluster,
);