updateCopy method

Marker updateCopy({
  1. LatLng? position,
  2. InfoWindow? infoWindow,
  3. Offset? anchor,
  4. bool? draggable,
  5. bool? flat,
  6. BitmapDescriptor? icon,
  7. double? rotation,
  8. double? alpha,
  9. bool? visible,
  10. double? zIndex,
  11. bool? clickable,
  12. bool? clusterable,
  13. VoidCallback? onClick,
  14. ValueChanged<LatLng>? onDragEnd,
  15. ValueChanged<LatLng>? onDragStart,
  16. ValueChanged<LatLng>? onDrag,
  17. List? animations,
})

Implementation

Marker updateCopy({
  LatLng? position,
  InfoWindow? infoWindow,
  Offset? anchor,
  bool? draggable,
  bool? flat,
  BitmapDescriptor? icon,
  double? rotation,
  double? alpha,
  bool? visible,
  double? zIndex,
  bool? clickable,
  bool? clusterable,
  VoidCallback? onClick,
  ValueChanged<LatLng>? onDragEnd,
  ValueChanged<LatLng>? onDragStart,
  ValueChanged<LatLng>? onDrag,
  List<dynamic>? animations,
}) {
  return Marker(
    markerId: markerId,
    position: position ?? this.position,
    infoWindow: infoWindow ?? this.infoWindow,
    anchor: anchor ?? this.anchor,
    draggable: draggable ?? this.draggable,
    flat: flat ?? this.flat,
    icon: icon ?? this.icon,
    rotation: rotation ?? this.rotation,
    alpha: alpha ?? this.alpha,
    visible: visible ?? this.visible,
    zIndex: zIndex ?? this.zIndex,
    clickable: clickable ?? this.clickable,
    clusterable: clusterable ?? this.clusterable,
    onClick: onClick ?? this.onClick,
    onDragEnd: onDragEnd ?? this.onDragEnd,
    onDragStart: onDragStart ?? this.onDragStart,
    onDrag: onDrag ?? this.onDrag,
    animationSet: animations ?? animationSet,
  );
}