MarkerWidgetsController class

Manages MarkerWidgets and associated Markers on a GoogleMap.

Constructors

MarkerWidgetsController()

Properties

hashCode int
The hash code for this object.
no setterinherited
markerIds List<MarkerId>
The list of MarkerIds being tracked.
no setter
markers ValueNotifier<Set<Marker>>
A listenable containing the set of Markers to display on GoogleMap.
getter/setter pair
markerWidgets ValueNotifier<List<MarkerWidget>>
A listenable containing the list of MarkerWidgets currently being displayed and tracked.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addDeviceLocationPuck({LatLng initialPosition = const LatLng(0, 0), LocationPuck locationPuck = const LocationPuck()}) → void
Adds a location puck for the device at initialPosition to the GoogleMap.
addMarkerAnimationController(AnimationController animationController, MarkerId markerId) → void
Adds the animationController used for updating marker positions on the GoogleMap to this controller.
addMarkerWidget({required MarkerWidget markerWidget, required Marker marker}) → void
Adds a Marker and associated MarkerWidget to the GoogleMap.
animationControllerForId(MarkerId markerId) AnimationController?
Returns the AnimationController associated with markerId.
bulkAddMarkerWidget(Iterable<({Marker marker, MarkerWidget markerWidget})> newMarkers) → void
Adds multiple Markers and their associated MarkerWidgets to the GoogleMap.
bulkRemoveMarker(Iterable<MarkerId> markerIds) → void
Removes multiple Markers and their associated MarkerWidget from the GoogleMap using their markerIds
markerForId(MarkerId markerId) → Marker?
Returns the Marker associated with markerId.
markerWidgetForId(MarkerId markerId) MarkerWidget?
Returns the MarkerWidget associated with markerId.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeMarker(MarkerId markerId) → void
Removes the Marker and MarkerWidget associated with markerId from the GoogleMap.
toString() String
A string representation of this object.
inherited
updateMarker(Marker marker, {bool animated = true, Curve curve = Curves.easeInOutCubic, Duration duration = const Duration(milliseconds: 1000)}) Future<void>
Updates a marker on GoogleMap.
updateMarkerImage({required BitmapDescriptor? bitmapDescriptor, required MarkerId markerId}) → void
Update the bitmapDescriptor for the Marker with markerId.

Operators

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