copyWith method
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,
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,
);
}