PopupMarkerLayerOptions constructor

PopupMarkerLayerOptions({
  1. List<Marker> markers = const [],
  2. PopupSnap popupSnap = PopupSnap.top,
  3. required PopupBuilder popupBuilder,
  4. dynamic popupController,
  5. 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);