MarkerController class

The MarkerController class wraps a GMarker, how it handles events, and its associated (optional) GInfoWindow widget.

Constructors

MarkerController({required GMarker marker, GInfoWindow? infoWindow, bool consumeTapEvents = false, LatLngCallback? onDragEnd, VoidCallback? onTap, Future<WebViewController>? controller})
Creates a MarkerController, which wraps a GMarker object, its onTap/onDrag behavior, and its associated GInfoWindow.

Properties

consumeTapEvents bool
Returns true if this Controller will use its own onTap handler to consume events.
no setter
dragEndEvent LatLngCallback?
Marker component's drag end event.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
infoWindowShown bool
Returns true if the GInfoWindow associated to this marker is being shown.
no setter
marker → GMarker?
Returns the GMarker associated to this controller.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tapEvent VoidCallback?
Marker component's tap event.
getter/setter pair

Methods

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

Operators

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