copyWith method
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,
)
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,
);
}