Marker class Null safety

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.
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
icon ↔ _BaseIcon?
the icon will display on the marker postion
read / write
id int?
the id of the element.
read-only, inherited
isAdded → dynamic
Check if the element added to the map.
read-only, inherited
label MarkerLabel?
the label of the marker.
read / write
onClick LatLngCallBack
an event runs on the user click the left mouse button on the element
write-only, inherited
onDoubleClick LatLngCallBack
an event runs on the user double click the left mouse button on the element
write-only, inherited
onMouseDown LatLngCallBack
an event runs on the mouse button down on the element.
write-only, inherited
onMouseMove LatLngCallBack
an event runs on the mouse move on the element.
write-only, inherited
onMouseUp LatLngCallBack
an event runs on the mouse button up on the element.
write-only, inherited
onRightClick LatLngCallBack
an event runs on the user click the right mouse button on the element
write-only, inherited
opacity double
the opacity of the marker.
read / write
position LatLng
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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.
read / write
visible bool
the visibility of the element
read / write, inherited
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.
read / write, inherited

Methods

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