Marker class

Constructors

Marker({required LatLng position, double opacity = 1, String title = '', MarkerAnimation animation = MarkerAnimation.BOUNCE, bool visible = true, int zIndex = 0, MarkerLabel? label, bool clickable = true, _BaseIcon? icon})

Properties

animation MarkerAnimation
how the marker will display on the map.
final
clickable bool
if true the element will be clickable and listen to mouse event. Default true.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
icon ↔ _BaseIcon?
the icon will display on the marker postion
getter/setter pair
id int?
the id of the element.
no setterinherited
isAdded → dynamic
Check if the element added to the map.
no setterinherited
label MarkerLabel?
the label of the marker.
getter/setter pair
onClick LatLngCallBack
an event runs on the user click the left mouse button on the element
no getterinherited
onDoubleClick LatLngCallBack
an event runs on the user double click the left mouse button on the element
no getterinherited
onMouseDown LatLngCallBack
an event runs on the mouse button down on the element.
no getterinherited
onMouseMove LatLngCallBack
an event runs on the mouse move on the element.
no getterinherited
onMouseUp LatLngCallBack
an event runs on the mouse button up on the element.
no getterinherited
onRightClick LatLngCallBack
an event runs on the user click the right mouse button on the element
no getterinherited
opacity double
the opacity of the marker.
getter/setter pair
position LatLng
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
Rollover text. If provided, an accessibility text (e.g. for use with screen readers) will be added to the marker with the provided value.
getter/setter pair
visible bool
the visibility of the element
getter/setter pairinherited
zIndex int
All elements are displayed on the map in order of their zIndex, with higher values displaying in front of markers with lower values. By default, elements are displayed according to their vertical position on screen, with lower elements appearing in front of markers further up the screen.
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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