closePopup method

LeafletMap closePopup([
  1. Popup? popup
])

Creates a popup with the specified content and options and opens it in the given point on a map. Closes the popup previously opened with openPopup (or the given one).

Implementation

// external LeafletMap openPopup(String content, LatLng latlng, [PopupOptions options]);

/// Closes the popup previously opened with openPopup (or the given one).
external LeafletMap closePopup([Popup? popup]);