Marker class Null safety

Marks a geographical location on the map.

A marker icon is drawn oriented against the device's screen rather than the map's surface; that is, it will not necessarily change orientation due to map rotations, tilting, or zooming.

Annotations

Constructors

Marker({required MarkerId markerId, double alpha = 1.0, bool consumeTapEvents = false, bool draggable = false, BitmapDescriptor? icon, InfoWindow infoWindow = InfoWindow.noText, LatLng position = const LatLng(0.0, 0.0), VoidCallback? onTap, bool visible = true, ValueChanged<LatLng>? onDragEnd})
Creates a set of marker configuration options. [...]
const

Properties

alpha double
The opacity of the marker, between 0.0 and 1.0 inclusive. [...]
final
appleMapsAnnotation Annotation
read-only
consumeTapEvents bool
True if the marker icon consumes tap events. If not, the map will perform default tap handling by centering the map on the marker and displaying its info window.
final
draggable bool
True if the marker is draggable by user touch events.
final
googleMapsMarker Marker
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
icon BitmapDescriptor?
A description of the bitmap used to draw the marker icon.
final
infoWindow InfoWindow
A Google Maps InfoWindow. [...]
final
markerId MarkerId
Uniquely identifies a Marker.
final
onDragEnd ValueChanged<LatLng>?
final
onTap VoidCallback?
Callbacks to receive tap events for markers placed on this map.
final
position LatLng
Geographical location of the marker.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
visible bool
True if the annotation is visible.
final

Methods

copyWith({double? alphaParam, bool? consumeTapEventsParam, bool? draggableParam, BitmapDescriptor? iconParam, InfoWindow? infoWindowParam, LatLng? positionParam, bool? visibleParam, VoidCallback? onTapParam}) Marker
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

appleMapsAnnotationFromMarker(Marker marker) Annotation
googleMapsMarkerFromMarker(Marker marker) Marker
toAppleMapsAnnotationSet(Set<Marker> markers) Set<Annotation>
toGoogleMapsMarkerSet(Set<Marker> markers) Set<Marker>