copyWith method

GeojsonSourceProperties copyWith(
  1. Object? data,
  2. double? maxzoom,
  3. String? attribution,
  4. double? buffer,
  5. double? tolerance,
  6. bool? cluster,
  7. double? clusterRadius,
  8. double? clusterMaxZoom,
  9. Object? clusterProperties,
  10. bool? lineMetrics,
  11. bool? generateId,
  12. String? promoteId,
)

Implementation

GeojsonSourceProperties copyWith(
  Object? data,
  double? maxzoom,
  String? attribution,
  double? buffer,
  double? tolerance,
  bool? cluster,
  double? clusterRadius,
  double? clusterMaxZoom,
  Object? clusterProperties,
  bool? lineMetrics,
  bool? generateId,
  String? promoteId,
) {
  return GeojsonSourceProperties(
    data: data ?? this.data,
    maxzoom: maxzoom ?? this.maxzoom,
    attribution: attribution ?? this.attribution,
    buffer: buffer ?? this.buffer,
    tolerance: tolerance ?? this.tolerance,
    cluster: cluster ?? this.cluster,
    clusterRadius: clusterRadius ?? this.clusterRadius,
    clusterMaxZoom: clusterMaxZoom ?? this.clusterMaxZoom,
    clusterProperties: clusterProperties ?? this.clusterProperties,
    lineMetrics: lineMetrics ?? this.lineMetrics,
    generateId: generateId ?? this.generateId,
    promoteId: promoteId ?? this.promoteId,
  );
}