copyWith method

VoyagerMapConfig copyWith({
  1. bool? compassEnabled,
  2. bool? mapToolbarEnabled,
  3. CameraTargetBounds? cameraTargetBounds,
  4. MapType? mapType,
  5. MinMaxZoomPreference? minMaxZoomPreference,
  6. bool? rotateGesturesEnabled,
  7. bool? scrollGesturesEnabled,
  8. bool? zoomControlsEnabled,
  9. bool? zoomGesturesEnabled,
  10. bool? liteModeEnabled,
  11. bool? tiltGesturesEnabled,
  12. EdgeInsets? padding,
  13. Set<Marker>? markers,
  14. Set<Polygon>? polygons,
  15. Set<Polyline>? polylines,
  16. Set<Circle>? circles,
  17. Set<TileOverlay>? tileOverlays,
  18. VoidCallback? onCameraMoveStarted,
  19. CameraPositionCallback? onCameraMove,
  20. VoidCallback? onCameraIdle,
  21. bool? myLocationEnabled,
  22. bool? myLocationButtonEnabled,
  23. bool? indoorViewEnabled,
  24. bool? trafficEnabled,
  25. bool? buildingsEnabled,
  26. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
})

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,
  );
}