copyWithBounds method

OpenMapOptions copyWithBounds({
  1. required LatLngBounds bounds,
  2. FitBoundsOptions? boundsOptions,
  3. Crs? crs,
  4. double? zoom,
  5. double? rotation,
  6. bool? debugMultiFingerGestureWinner,
  7. bool? enableMultiFingerGestureRace,
  8. double? rotationThreshold,
  9. int? rotationWinGestures,
  10. double? pinchZoomThreshold,
  11. int? pinchZoomWinGestures,
  12. double? pinchMoveThreshold,
  13. int? pinchMoveWinGestures,
  14. bool? enableScrollWheel,
  15. double? minZoom,
  16. double? maxZoom,
  17. int? interactiveFlags,
  18. LatLngBounds? maxBounds,
  19. bool? keepAlive,
  20. LongPressCallback? onLongPress,
  21. PositionCallback? onPositionChanged,
  22. bool? slideOnBoundaries,
  23. Size? screenSize,
  24. bool? adaptiveBoundaries,
  25. LatLng? swPanBoundary,
  26. LatLng? nePanBoundary,
})

Implementation

OpenMapOptions copyWithBounds({
  required LatLngBounds bounds,
  FitBoundsOptions? boundsOptions,
  Crs? crs,
  double? zoom,
  double? rotation,
  bool? debugMultiFingerGestureWinner,
  bool? enableMultiFingerGestureRace,
  double? rotationThreshold,
  int? rotationWinGestures,
  double? pinchZoomThreshold,
  int? pinchZoomWinGestures,
  double? pinchMoveThreshold,
  int? pinchMoveWinGestures,
  bool? enableScrollWheel,
  double? minZoom,
  double? maxZoom,
  int? interactiveFlags,
  LatLngBounds? maxBounds,
  bool? keepAlive,
  LongPressCallback? onLongPress,
  PositionCallback? onPositionChanged,
  bool? slideOnBoundaries,
  Size? screenSize,
  bool? adaptiveBoundaries,
  LatLng? swPanBoundary,
  LatLng? nePanBoundary,
}) {
  return OpenMapOptions.bounds(
    crs: crs ?? this.crs,
    zoom: zoom ?? this.zoom,
    rotation: rotation ?? this.rotation,
    debugMultiFingerGestureWinner:
        debugMultiFingerGestureWinner ?? this.debugMultiFingerGestureWinner,
    enableMultiFingerGestureRace:
        enableMultiFingerGestureRace ?? this.enableMultiFingerGestureRace,
    rotationThreshold: rotationThreshold ?? this.rotationThreshold,
    rotationWinGestures: rotationWinGestures ?? this.rotationWinGestures,
    pinchZoomThreshold: pinchZoomThreshold ?? this.pinchZoomThreshold,
    pinchZoomWinGestures: pinchZoomWinGestures ?? this.pinchZoomWinGestures,
    pinchMoveThreshold: pinchMoveThreshold ?? this.pinchMoveThreshold,
    pinchMoveWinGestures: pinchMoveWinGestures ?? this.pinchMoveWinGestures,
    enableScrollWheel: enableScrollWheel ?? this.enableScrollWheel,
    minZoom: minZoom ?? this.minZoom,
    maxZoom: maxZoom ?? this.maxZoom,
    interactiveFlags: interactiveFlags ?? this.interactiveFlags,
    maxBounds: maxBounds ?? this.maxBounds,
    keepAlive:
        keepAlive ?? this.keepAlive,
    onLongPress: onLongPress ?? this.onLongPress,
    onPositionChanged: onPositionChanged ?? this.onPositionChanged,
    slideOnBoundaries: slideOnBoundaries ?? this.slideOnBoundaries,
    screenSize: screenSize ?? this.screenSize,
    adaptiveBoundaries: adaptiveBoundaries ?? this.adaptiveBoundaries,
    bounds: bounds,
    boundsOptions: boundsOptions ?? _boundsOptions,
    swPanBoundary: swPanBoundary ?? this.swPanBoundary,
    nePanBoundary: nePanBoundary ?? this.nePanBoundary,
  );
}