Marker class

Marks a geographical location on the street view.

Implemented types
Annotations

Constructors

Marker({required MarkerId markerId, BitmapDescriptor icon = BitmapDescriptor.defaultMarker, LatLng position = const LatLng(0.0, 0.0), bool visible = true, VoidCallback? onTap})
Creates a set of marker configuration options.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
icon BitmapDescriptor
A description of the bitmap used to draw the marker icon.
final
mapsId MarkerId
A identifier for this object.
no setteroverride
markerId MarkerId
Uniquely identifies a Marker.
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.
no setterinherited
visible bool
True if the marker is visible.
final

Methods

clone() Marker
Creates a new Marker object whose values are the same as this instance.
override
copyWith({BitmapDescriptor? iconParam, LatLng? positionParam, bool? visibleParam, VoidCallback? onTapParam}) Marker
Creates a new Marker object whose values are the same as this instance, unless overwritten by the specified parameters.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
Converts this object to something serializable in JSON.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override