# copyWith method - Marker class - amap_map library - Dart API
API docs for the copyWith method from the Marker class, for the Dart programming language.

# copyWith method

Marker copyWith (

1. {double alphaParam,
2. Offset anchorParam,
3. bool clickableParam,
4. bool draggableParam,
5. BitmapDescriptor iconParam,
6. bool infoWindowEnableParam,
7. InfoWindow infoWindowParam,
8. LatLng positionParam,
9. double rotationParam,
10. bool visibleParam,
11. VoidCallback onTapParam,
12. ValueChanged <LatLng> onDragEndParam}

)

copy的真正复制的参数

## Implementation

    Marker copyWith({
      double alphaParam,
      Offset anchorParam,
      bool clickableParam,
      bool draggableParam,
      BitmapDescriptor iconParam,
      bool infoWindowEnableParam,
      InfoWindow infoWindowParam,
      LatLng positionParam,
      double rotationParam,
      bool visibleParam,
      VoidCallback onTapParam,
      ValueChanged<LatLng> onDragEndParam,
    }) {
      Marker copyMark = Marker(
        alpha: alphaParam ?? alpha,
        anchor: anchorParam ?? anchor,
        clickable: clickableParam ?? clickable,
        draggable: draggableParam ?? draggable,
        icon: iconParam ?? icon,
        infoWindowEnable: infoWindowEnableParam ?? infoWindowEnable,
        infoWindow: infoWindowParam ?? infoWindow,
        position: positionParam ?? position,
        rotation: rotationParam ?? rotation,
        visible: visibleParam ?? visible,
        zIndex: zIndex,
        onTap: onTapParam ?? onTap,
        onDragEnd: onDragEndParam ?? onDragEnd,
      );
      copyMark.setIdForCopy(id);
      return copyMark;
    }