MarkerWidgetsController class
Manages MarkerWidgets and associated Markers on a GoogleMap.
Constructors
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 onGoogleMap.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
initialPositionto theGoogleMap. -
addMarkerAnimationController(
AnimationController animationController, MarkerId markerId) → void -
Adds the
animationControllerused for updating marker positions on the GoogleMap to this controller. -
addMarkerWidget(
{required MarkerWidget markerWidget, required Marker marker}) → void -
Adds a
Markerand associated MarkerWidget to theGoogleMap. -
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 theGoogleMap. -
bulkRemoveMarker(
Iterable< MarkerId> markerIds) → void -
Removes multiple
Markers and their associated MarkerWidget from theGoogleMapusing theirmarkerIds -
markerForId(
MarkerId markerId) → Marker? -
Returns the
Markerassociated withmarkerId. -
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
Markerand MarkerWidget associated withmarkerIdfrom theGoogleMap. -
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
markeronGoogleMap. -
updateMarkerImage(
{required BitmapDescriptor? bitmapDescriptor, required MarkerId markerId}) → void -
Update the
bitmapDescriptorfor theMarkerwithmarkerId.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited