NmMapLayersState class

State for the map layers screen.

Constructors

NmMapLayersState({List<NmMapLayer> layers = const [], List<NmPropertyMarkerData> markers = const [], String? selectedMarkerId, bool isLayerPanelOpen = false, double centerLatitude = 39.8283, double centerLongitude = -98.5795, double zoomLevel = 4.0})
Creates a NmMapLayersState.
const
NmMapLayersState.initial()
Create initial state with all layer types.
factory

Properties

centerLatitude → double
Center latitude.
final
centerLongitude → double
Center longitude.
final
hashCode → int
The hash code for this object.
no setterinherited
isLayerPanelOpen → bool
Is layer panel open.
final
layers → List<NmMapLayer>
Layers.
final
markers → List<NmPropertyMarkerData>
Markers.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedMarker → NmPropertyMarkerData?
Selected marker.
no setter
selectedMarkerId → String?
Selected marker id.
final
visibleMarkers → List<NmPropertyMarkerData>
Visible markers.
no setter
zoomLevel → double
Zoom level.
final

Methods

copyWith({List<NmMapLayer>? layers, List<NmPropertyMarkerData>? markers, String? selectedMarkerId, bool? isLayerPanelOpen, double? centerLatitude, double? centerLongitude, double? zoomLevel}) → NmMapLayersState
Copy with.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited