MarkerController class

The MarkerController class wraps a gmaps.Marker, how it handles events, and its associated (optional) gmaps.InfoWindow widget.

Constructors

MarkerController({required Marker marker, InfoWindow? infoWindow, bool consumeTapEvents = false, LatLngCallback? onDragStart, LatLngCallback? onDrag, LatLngCallback? onDragEnd, VoidCallback? onTap, ClusterManagerId? clusterManagerId})
Creates a MarkerController, which wraps a gmaps.Marker object, its onTap/onDrag behavior, and its associated gmaps.InfoWindow.

Properties

clusterManagerId → ClusterManagerId?
Returns ClusterManagerId if marker belongs to cluster.
no setter
consumeTapEvents bool
Returns true if this Controller will use its own onTap handler to consume events.
no setter
hashCode int
The hash code for this object.
no setterinherited
infoWindow → InfoWindow?
Returns the gmaps.InfoWindow associated to the marker.
no setter
infoWindowShown bool
Returns true if the gmaps.InfoWindow associated to this marker is being shown.
no setter
marker → Marker?
Returns the gmaps.Marker associated to this controller.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

hideInfoWindow() → void
Hide the associated gmaps.InfoWindow.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove() → void
Disposes of the currently wrapped gmaps.Marker.
showInfoWindow() → void
Show the associated gmaps.InfoWindow.
toString() String
A string representation of this object.
inherited
update(MarkerOptions options, {HTMLElement? newInfoWindowContent}) → void
Updates the options of the wrapped gmaps.Marker object.

Operators

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