copyWith method
NmMapLayersState
copyWith({
- List<
NmMapLayer> ? layers, - List<
NmPropertyMarkerData> ? markers, - String? selectedMarkerId,
- bool? isLayerPanelOpen,
- double? centerLatitude,
- double? centerLongitude,
- double? zoomLevel,
Copy with.
Implementation
NmMapLayersState copyWith({
List<NmMapLayer>? layers,
List<NmPropertyMarkerData>? markers,
String? selectedMarkerId,
bool? isLayerPanelOpen,
double? centerLatitude,
double? centerLongitude,
double? zoomLevel,
}) {
return NmMapLayersState(
layers: layers ?? this.layers,
markers: markers ?? this.markers,
selectedMarkerId: selectedMarkerId ?? this.selectedMarkerId,
isLayerPanelOpen: isLayerPanelOpen ?? this.isLayerPanelOpen,
centerLatitude: centerLatitude ?? this.centerLatitude,
centerLongitude: centerLongitude ?? this.centerLongitude,
zoomLevel: zoomLevel ?? this.zoomLevel,
);
}