WidgetPin class abstract

Controller for a Widget pinned at a fixed geographical location on the map.

A pinned Widget tracks the geographical location as the map is being manipulated. It behaves like a MapMarker, only it's a regular Flutter Widget and is not part of normal map rendering.

WidgetPin allows modifying the geographical location of the pinned Widget as well as its placement relative to it.

Use HereMapController.pinWidget to pin (add) a Widget to a map and obtain in instance of WidgetPin that controls it.

To unpin (remove) a Widget from the map, use HereMapController.unpinWidget. or WidgetPin.unpin.

Constructors

WidgetPin({required Widget child, required GeoCoordinates coordinates, Anchor2D? anchor, dynamic onChange()?, dynamic onUnpin(WidgetPin)?})
Creates a WidgetPin displaying child Widget at coordinates location on the map Don't use this constructor directly. Instead use HereMapController.pinWidget to create a WidgetPin.
factory

Properties

anchor Anchor2D
Gets pinned Widget's placement relative to geographical location,
getter/setter pair
child → Widget
The pinned Widget controlled by this WidgetPin.
no setter
coordinates GeoCoordinates
Gets geographical location of the WidgetPin.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

makeWidget(BuildContext context) → Widget
Creates a widget for this WidgetPin.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
unpin() → dynamic
Removes this WidgetPin from the map.
updateScreenPosition(Point2D? screenPosition) → dynamic

Operators

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