copyWith method
MapOptions
copyWith({
- Crs? crs,
- Size? size,
- dynamic center,
- ZoomOptions? zoomOptions,
- double? rotation,
- bool? disableRotation,
- bool? showCenterMarker,
- num? centerMarkerSize,
- dynamic centerMarker,
- bool? live,
- bool? moveWhenLive,
- bool? showLocator,
- Locator? locator,
- dynamic locationMarker,
- num? locationMarkerSize,
- bool? showLocationMarker,
- bool? showLocationIndicator,
- LocationIndicator? locationIndicator,
- bool? showCompass,
- Compass? compass,
- bool? showScale,
- Scale? scale,
- bool? interactive,
- LatLngBounds? maxBounds,
- LatLngBounds? fitBounds,
- FitBoundsOptions? fitBoundsOptions,
- bool? slideOnBoundaries,
- bool? adaptiveBoundaries,
- dynamic onTap()?,
- dynamic onLongPress()?,
- MapChangedCallback? onChanged,
- Function? onReady,
- String? attribution,
- bool? hideAttribution,
Implementation
MapOptions copyWith({
Crs? crs,
Size? size,
dynamic center,
ZoomOptions? zoomOptions,
double? rotation,
bool? disableRotation,
bool? showCenterMarker,
num? centerMarkerSize,
dynamic centerMarker,
bool? live,
bool? moveWhenLive,
bool? showLocator,
Locator? locator,
dynamic locationMarker,
num? locationMarkerSize,
bool? showLocationMarker,
bool? showLocationIndicator,
LocationIndicator? locationIndicator,
bool? showCompass,
Compass? compass,
bool? showScale,
Scale? scale,
bool? interactive,
LatLngBounds? maxBounds,
LatLngBounds? fitBounds,
FitBoundsOptions? fitBoundsOptions,
bool? slideOnBoundaries,
bool? adaptiveBoundaries,
Function(LatLng?)? onTap,
Function(LatLng?)? onLongPress,
MapChangedCallback? onChanged,
Function? onReady,
String? attribution,
bool? hideAttribution,
}) =>
MapOptions(
crs: crs ?? this.crs,
size: size ?? this.size,
center: center ?? this.center ?? centerQuery,
zoomOptions: zoomOptions ?? this.zoomOptions,
rotation: rotation ?? this.rotation,
disableRotation: disableRotation ?? this.disableRotation,
showCenterMarker: showCenterMarker ?? this.showCenterMarker,
centerMarkerSize: centerMarkerSize?.toDouble() ?? this.centerMarkerSize,
centerMarker: centerMarker ?? this.centerMarker,
locationMarker: locationMarker ?? this.locationMarker,
locationMarkerSize:
locationMarkerSize?.toDouble() ?? this.locationMarkerSize,
live: live ?? this.live,
moveWhenLive: moveWhenLive ?? this.moveWhenLive,
locator: locator ?? this.locator,
showLocator: showLocator ?? this.showLocator,
locationIndicator: locationIndicator ?? this.locationIndicator,
showLocationIndicator:
showLocationIndicator ?? this.showLocationIndicator,
showLocationMarker: showLocationMarker ?? this.showLocationMarker,
compass: compass ?? this.compass,
showCompass: showCompass ?? this.showCompass,
scale: scale ?? this.scale,
showScale: showScale ?? this.showScale,
interactive: interactive ?? this.interactive,
maxBounds: maxBounds ?? this.maxBounds,
fitBounds: fitBounds ?? this.fitBounds,
fitBoundsOptions: fitBoundsOptions ?? this.fitBoundsOptions,
slideOnBoundaries: slideOnBoundaries ?? this.slideOnBoundaries,
adaptiveBoundaries: adaptiveBoundaries ?? this.adaptiveBoundaries,
onTap: onTap ?? this.onTap,
onLongPress: onLongPress ?? this.onLongPress,
onChanged: onChanged ?? this.onChanged,
onReady: onReady ?? this.onReady,
attribution: attribution ?? this.attribution,
hideAttribution: hideAttribution ?? this.hideAttribution,
);