Marker constructor

const Marker({
  1. required MarkerId markerId,
  2. required LatLng position,
  3. InfoWindow infoWindow = InfoWindow.noText,
  4. Offset anchor = const Offset(0.5, 1.0),
  5. bool draggable = false,
  6. bool flat = false,
  7. BitmapDescriptor icon = BitmapDescriptor.defaultMarker,
  8. double rotation = 0.0,
  9. double alpha = 1.0,
  10. bool visible = true,
  11. double zIndex = 0.0,
  12. bool clickable = false,
  13. bool clusterable = false,
  14. VoidCallback? onClick,
  15. ValueChanged<LatLng>? onDragEnd,
  16. ValueChanged<LatLng>? onDragStart,
  17. ValueChanged<LatLng>? onDrag,
  18. 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>[],
});