copyWith method
Creates a copy with optional overrides.
Implementation
MapSettings copyWith({
bool? showLocalPlaces,
bool? showEncryptedPlaces,
bool? hideAllMarkers,
Color? userPlacesColor,
Color? localPlacesColor,
Color? encryptedPlacesColor,
MapSource? mapSource,
bool? rememberViewport,
double? initialLat,
double? initialLng,
double? initialZoom,
}) {
return MapSettings(
showLocalPlaces: showLocalPlaces ?? this.showLocalPlaces,
showEncryptedPlaces: showEncryptedPlaces ?? this.showEncryptedPlaces,
hideAllMarkers: hideAllMarkers ?? this.hideAllMarkers,
userPlacesColor: userPlacesColor ?? this.userPlacesColor,
localPlacesColor: localPlacesColor ?? this.localPlacesColor,
encryptedPlacesColor: encryptedPlacesColor ?? this.encryptedPlacesColor,
mapSource: mapSource ?? this.mapSource,
rememberViewport: rememberViewport ?? this.rememberViewport,
initialLat: initialLat ?? this.initialLat,
initialLng: initialLng ?? this.initialLng,
initialZoom: initialZoom ?? this.initialZoom,
);
}