copyWith method

WidgetMarker copyWith({
  1. LatLng? position,
  2. String? markerId,
  3. VoidCallback? onTap,
  4. Widget? widget,
  5. bool? draggable,
  6. InfoWindow? infoWindow,
  7. double? rotation,
  8. bool? visible,
  9. double? zIndex,
  10. ValueChanged<LatLng>? onDragStart,
  11. ValueChanged<LatLng>? onDragEnd,
  12. ValueChanged<LatLng>? onDrag,
})

Implementation

WidgetMarker copyWith({
  LatLng? position,
  String? markerId,
  VoidCallback? onTap,
  Widget? widget,
  bool? draggable,
  InfoWindow? infoWindow,
  double? rotation,
  bool? visible,
  double? zIndex,
  ValueChanged<LatLng>? onDragStart,
  ValueChanged<LatLng>? onDragEnd,
  ValueChanged<LatLng>? onDrag,
}) {
  return WidgetMarker(
    position: position ?? this.position,
    markerId: markerId ?? this.markerId,
    onTap: onTap ?? this.onTap,
    widget: widget ?? this.widget,
    draggable: draggable ?? this.draggable,
    infoWindow: infoWindow ?? this.infoWindow,
    rotation: rotation ?? this.rotation,
    visible: visible ?? this.visible,
    zIndex: zIndex ?? this.zIndex,
    onDragStart: onDragStart ?? this.onDragStart,
    onDragEnd: onDragEnd ?? this.onDragEnd,
    onDrag: onDrag ?? this.onDrag,
  );
}