Marker constructor
const
Marker({
- required MarkerId markerId,
- required LatLng position,
- InfoWindow infoWindow = InfoWindow.noText,
- Offset anchor = const Offset(0.5, 1.0),
- bool draggable = false,
- bool flat = false,
- BitmapDescriptor icon = BitmapDescriptor.defaultMarker,
- double rotation = 0.0,
- double alpha = 1.0,
- bool visible = true,
- double zIndex = 0.0,
- bool clickable = false,
- bool clusterable = false,
- VoidCallback? onClick,
- ValueChanged<
LatLng> ? onDragEnd, - ValueChanged<
LatLng> ? onDragStart, - ValueChanged<
LatLng> ? onDrag, - List animationSet = const <dynamic>[],
Implementation
const Marker({
required this.markerId,
required this.position,
this.infoWindow = InfoWindow.noText,
this.anchor = const Offset(0.5, 1.0),
this.draggable = false,
this.flat = false,
this.icon = BitmapDescriptor.defaultMarker,
this.rotation = 0.0,
this.alpha = 1.0,
this.visible = true,
this.zIndex = 0.0,
this.clickable = false,
this.clusterable = false,
this.onClick,
this.onDragEnd,
this.onDragStart,
this.onDrag,
this.animationSet = const <dynamic>[],
});