copyWith method

UiSettings copyWith({
  1. bool? isZoomControlsEnabled,
  2. int? zoomPosition,
  3. bool? isCompassEnabled,
  4. bool? isMyLocationButtonEnabled,
  5. bool? isScaleControlsEnabled,
  6. int? logoPosition,
  7. bool? isZoomGesturesEnabled,
  8. bool? isScrollGesturesEnabled,
  9. bool? isRotateGesturesEnabled,
  10. bool? isTiltGesturesEnabled,
})

Implementation

UiSettings copyWith({
  bool? isZoomControlsEnabled,
  int? zoomPosition,
  bool? isCompassEnabled,
  bool? isMyLocationButtonEnabled,
  bool? isScaleControlsEnabled,
  int? logoPosition,
  bool? isZoomGesturesEnabled,
  bool? isScrollGesturesEnabled,
  bool? isRotateGesturesEnabled,
  bool? isTiltGesturesEnabled,
}) {
  return UiSettings(
    isZoomControlsEnabled: isZoomControlsEnabled ?? this.isZoomControlsEnabled,
    zoomPosition: zoomPosition ?? this.zoomPosition,
    isCompassEnabled: isCompassEnabled ?? this.isCompassEnabled,
    isMyLocationButtonEnabled: isMyLocationButtonEnabled ?? this.isMyLocationButtonEnabled,
    isScaleControlsEnabled: isScaleControlsEnabled ?? this.isScaleControlsEnabled,
    logoPosition: logoPosition ?? this.logoPosition,
    isZoomGesturesEnabled: isZoomGesturesEnabled ?? this.isZoomGesturesEnabled,
    isScrollGesturesEnabled: isScrollGesturesEnabled ?? this.isScrollGesturesEnabled,
    isRotateGesturesEnabled: isRotateGesturesEnabled ?? this.isRotateGesturesEnabled,
    isTiltGesturesEnabled: isTiltGesturesEnabled ?? this.isTiltGesturesEnabled,
  );
}