copyWith method

AMapOptions copyWith({
  1. int? logoPosition,
  2. bool? zOrderOnTop,
  3. int? mapType,
  4. CameraPosition? camera,
  5. bool? scaleControlsEnabled,
  6. bool? zoomControlsEnabled,
  7. bool? compassEnabled,
  8. bool? scrollGesturesEnabled,
  9. bool? zoomGesturesEnabled,
  10. bool? tiltGesturesEnabled,
  11. bool? rotateGesturesEnabled,
  12. bool? myLocationEnabled,
})

Implementation

AMapOptions copyWith({
  int? logoPosition,
  bool? zOrderOnTop,
  int? mapType,
  CameraPosition? camera,
  bool? scaleControlsEnabled,
  bool? zoomControlsEnabled,
  bool? compassEnabled,
  bool? scrollGesturesEnabled,
  bool? zoomGesturesEnabled,
  bool? tiltGesturesEnabled,
  bool? rotateGesturesEnabled,
  bool? myLocationEnabled,
}) {
  return AMapOptions(
    logoPosition: logoPosition ?? this.logoPosition,
    zOrderOnTop: zOrderOnTop ?? this.zOrderOnTop,
    mapType: mapType ?? this.mapType,
    camera: camera ?? this.camera,
    scaleControlsEnabled: scaleControlsEnabled ?? this.scaleControlsEnabled,
    zoomControlsEnabled: zoomControlsEnabled ?? this.zoomControlsEnabled,
    compassEnabled: compassEnabled ?? this.compassEnabled,
    scrollGesturesEnabled: scrollGesturesEnabled ?? this.scrollGesturesEnabled,
    zoomGesturesEnabled: zoomGesturesEnabled ?? this.zoomGesturesEnabled,
    tiltGesturesEnabled: tiltGesturesEnabled ?? this.tiltGesturesEnabled,
    rotateGesturesEnabled: rotateGesturesEnabled ?? this.rotateGesturesEnabled,
    myLocationEnabled: myLocationEnabled ?? this.myLocationEnabled,
  );
}