copyWith method
VoyagerMapConfig
copyWith({
- bool? compassEnabled,
- bool? mapToolbarEnabled,
- CameraTargetBounds? cameraTargetBounds,
- MapType? mapType,
- MinMaxZoomPreference? minMaxZoomPreference,
- bool? rotateGesturesEnabled,
- bool? scrollGesturesEnabled,
- bool? zoomControlsEnabled,
- bool? zoomGesturesEnabled,
- bool? liteModeEnabled,
- bool? tiltGesturesEnabled,
- EdgeInsets? padding,
- Set<
Marker> ? markers, - Set<
Polygon> ? polygons, - Set<
Polyline> ? polylines, - Set<
Circle> ? circles, - Set<
TileOverlay> ? tileOverlays, - VoidCallback? onCameraMoveStarted,
- CameraPositionCallback? onCameraMove,
- VoidCallback? onCameraIdle,
- bool? myLocationEnabled,
- bool? myLocationButtonEnabled,
- bool? indoorViewEnabled,
- bool? trafficEnabled,
- bool? buildingsEnabled,
- Set<
Factory< ? gestureRecognizers,OneSequenceGestureRecognizer> >
Implementation
VoyagerMapConfig copyWith({
bool? compassEnabled,
bool? mapToolbarEnabled,
CameraTargetBounds? cameraTargetBounds,
MapType? mapType,
MinMaxZoomPreference? minMaxZoomPreference,
bool? rotateGesturesEnabled,
bool? scrollGesturesEnabled,
bool? zoomControlsEnabled,
bool? zoomGesturesEnabled,
bool? liteModeEnabled,
bool? tiltGesturesEnabled,
EdgeInsets? padding,
Set<Marker>? markers,
Set<Polygon>? polygons,
Set<Polyline>? polylines,
Set<Circle>? circles,
Set<TileOverlay>? tileOverlays,
VoidCallback? onCameraMoveStarted,
CameraPositionCallback? onCameraMove,
VoidCallback? onCameraIdle,
bool? myLocationEnabled,
bool? myLocationButtonEnabled,
bool? indoorViewEnabled,
bool? trafficEnabled,
bool? buildingsEnabled,
Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
}) {
return VoyagerMapConfig(
gestureRecognizers: gestureRecognizers ?? this.gestureRecognizers,
compassEnabled: compassEnabled ?? this.compassEnabled,
mapToolbarEnabled: mapToolbarEnabled ?? this.mapToolbarEnabled,
cameraTargetBounds: cameraTargetBounds ?? this.cameraTargetBounds,
mapType: mapType ?? this.mapType,
minMaxZoomPreference: minMaxZoomPreference ?? this.minMaxZoomPreference,
rotateGesturesEnabled:
rotateGesturesEnabled ?? this.rotateGesturesEnabled,
scrollGesturesEnabled:
scrollGesturesEnabled ?? this.scrollGesturesEnabled,
zoomControlsEnabled: zoomControlsEnabled ?? this.zoomControlsEnabled,
zoomGesturesEnabled: zoomGesturesEnabled ?? this.zoomGesturesEnabled,
liteModeEnabled: liteModeEnabled ?? this.liteModeEnabled,
tiltGesturesEnabled: tiltGesturesEnabled ?? this.tiltGesturesEnabled,
myLocationEnabled: myLocationEnabled ?? this.myLocationEnabled,
myLocationButtonEnabled:
myLocationButtonEnabled ?? this.myLocationButtonEnabled,
padding: padding ?? this.padding,
indoorViewEnabled: indoorViewEnabled ?? this.indoorViewEnabled,
trafficEnabled: trafficEnabled ?? this.trafficEnabled,
buildingsEnabled: buildingsEnabled ?? this.buildingsEnabled,
markers: markers ?? this.markers,
polygons: polygons ?? this.polygons,
polylines: polylines ?? this.polylines,
circles: circles ?? this.circles,
onCameraMoveStarted: onCameraMoveStarted ?? this.onCameraMoveStarted,
tileOverlays: tileOverlays ?? this.tileOverlays,
onCameraMove: onCameraMove ?? this.onCameraMove,
onCameraIdle: onCameraIdle ?? this.onCameraIdle,
);
}