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