copyWith method
Annotation
copyWith({
- double? alphaParam,
- Offset? anchorParam,
- bool? consumeTapEventsParam,
- bool? draggableParam,
- BitmapDescriptor? iconParam,
- InfoWindow? infoWindowParam,
- LatLng? positionParam,
- bool? visibleParam,
- double? zIndexParam,
- VoidCallback? onTapParam,
- ValueChanged<
LatLng> ? onDragEndParam,
Creates a new Annotation object whose values are the same as this instance, unless overwritten by the specified parameters.
Implementation
Annotation copyWith({
double? alphaParam,
Offset? anchorParam,
bool? consumeTapEventsParam,
bool? draggableParam,
BitmapDescriptor? iconParam,
InfoWindow? infoWindowParam,
LatLng? positionParam,
bool? visibleParam,
double? zIndexParam,
VoidCallback? onTapParam,
ValueChanged<LatLng>? onDragEndParam,
}) {
return Annotation(
annotationId: annotationId,
anchor: anchorParam ?? anchor,
alpha: alphaParam ?? alpha,
draggable: draggableParam ?? draggable,
icon: iconParam ?? icon,
infoWindow: infoWindowParam ?? infoWindow,
position: positionParam ?? position,
onTap: onTapParam ?? onTap,
visible: visibleParam ?? visible,
zIndex: zIndexParam ?? zIndex,
onDragEnd: onDragEndParam ?? onDragEnd,
);
}