Marker constructor

const Marker({
  1. required MarkerId markerId,
  2. BitmapDescriptor icon = BitmapDescriptor.defaultMarker,
  3. LatLng position = const LatLng(0.0, 0.0),
  4. bool visible = true,
  5. VoidCallback? onTap,
})

Creates a set of marker configuration options.

Default marker options.

Specifies a marker that

  • has a default icon; icon is BitmapDescriptor.defaultMarker
  • is positioned at 0, 0; position is LatLng(0.0, 0.0)
  • is visible; visible is true
  • reports onTap events

Implementation

const Marker({
  required this.markerId,
  this.icon = BitmapDescriptor.defaultMarker,
  this.position = const LatLng(0.0, 0.0),
  this.visible = true,
  this.onTap,
});