WidgetMarker constructor

const WidgetMarker({
  1. required LatLng position,
  2. required String markerId,
  3. VoidCallback? onTap,
  4. required Widget widget,
  5. bool draggable = false,
  6. InfoWindow infoWindow = InfoWindow.noText,
  7. double rotation = 0.0,
  8. bool visible = true,
  9. double zIndex = 0.0,
  10. ValueChanged<LatLng>? onDrag,
  11. ValueChanged<LatLng>? onDragStart,
  12. ValueChanged<LatLng>? onDragEnd,
})

Implementation

const WidgetMarker({
  required this.position,
  required this.markerId,
  this.onTap,
  required this.widget,
  this.draggable = false,
  this.infoWindow = InfoWindow.noText,
  this.rotation = 0.0,
  this.visible = true,
  this.zIndex = 0.0,
  this.onDrag,
  this.onDragStart,
  this.onDragEnd,
}) : assert(markerId != '');