PopupMarkerLayerOptions constructor
PopupMarkerLayerOptions({
- List<
Marker> markers = const [], - PopupSnap popupSnap = PopupSnap.top,
- required PopupBuilder popupBuilder,
- dynamic popupController,
- dynamic rebuild,
Show the list of markers on the map with a popup that is shown when a marker is tapped or via the popupController.
popupSnap: To which edge of the marker the popup should snap to. popupBuilder: A function that builds the popup for the given context and for the given Marker. popupController: Optional. Provide a PopupController instance to control popup functionality programmatically.
Implementation
PopupMarkerLayerOptions({
this.markers = const [],
this.popupSnap = PopupSnap.top,
required this.popupBuilder,
popupController,
rebuild,
}) : popupController = popupController ?? PopupController(),
super(rebuild: rebuild);