MFMarker constructor

const MFMarker({
  1. required MFMarkerId markerId,
  2. bool consumeTapEvents = false,
  3. MFLatLng position = const MFLatLng(0.0, 0.0),
  4. double elevation = 0.0,
  5. double rotation = 0.0,
  6. Offset anchor = const Offset(0.5, 0.5),
  7. bool draggable = false,
  8. bool visible = true,
  9. double zIndex = 0.0,
  10. MFBitmap icon = MFBitmap.defaultIcon,
  11. MFInfoWindow infoWindow = MFInfoWindow.noText,
  12. VoidCallback? onTap,
  13. ValueChanged<MFLatLng>? onDragEnd,
})

Implementation

const MFMarker({
  required this.markerId,
  this.consumeTapEvents = false,
  this.position = const MFLatLng(0.0, 0.0),
  this.elevation = 0.0,
  this.rotation = 0.0,
  this.anchor = const Offset(0.5, 0.5),
  this.draggable = false,
  this.visible = true,
  this.zIndex = 0.0,
  this.icon = MFBitmap.defaultIcon,
  this.infoWindow = MFInfoWindow.noText,
  this.onTap,
  this.onDragEnd,
});