PopupMarkerLayerOptions class
Constructors
-
Show the list of markers on the map with a popups that are shown when a
marker is tapped or when triggered via the popupController.
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
initiallySelected
→ List<PopupSpec>
-
The PopupSpecs for which a popup should be initially visible. Note that
this has no affect if the PopupMarkerLayer is within a PopupScope and
should be declared on the PopupScope instead.
final
-
markerCenterAnimation
→ MarkerCenterAnimation?
-
Setting a MarkerCenterAnimation will cause the map to be centered on
a marker when it is tapped. Defaults to not centering on the marker.
final
-
markers
→ List<Marker>
-
The markers to display on the map.
final
-
markerTapBehavior
→ MarkerTapBehavior
-
The default MarkerTapBehavior is
MarkerTapBehavior.togglePopupAndHideRest which will toggle the popup of
the tapped marker and hide all other popups. This is a sensible default
when you only want to show a single popup at a time but if you show
multiple popups you probably want to use MarkerTapBehavior.togglePopup.
final
-
An optional callback which can be used to react to
PopupControllerEvent
s.
The selectedMarkers
is the list of Marker
s which are selected after
the event
is applied.
final
-
If a PopupController is provided it can be used to programmatically show
and hide the popup. This must be null if there is a surrounding
PopupScope. The PopupController should be passed there instead.
final
-
Controls the appearance of popups. Leave null if you wish to show popups
elsewhere either using PopupLayerPopups or by manually constructing the
popup using PopupScope/PopupState.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedMarkerBuilder
→ (Widget Function(BuildContext context, Marker marker)?)
-
An optional builder which, if provided, will be used to build markers
which are selected.
final
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited