copyWith method

NmMapLayersState copyWith({
  1. List<NmMapLayer>? layers,
  2. List<NmPropertyMarkerData>? markers,
  3. String? selectedMarkerId,
  4. bool? isLayerPanelOpen,
  5. double? centerLatitude,
  6. double? centerLongitude,
  7. 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,
  );
}