MarkerLongPressBehavior.togglePopupAndHideRest constructor
Toggle the popup of the longpressed marker and hide all other popups. This is the recommended behavior if you only want to show one popup at a time.
Implementation
MarkerLongPressBehavior.togglePopupAndHideRest()
: _onLongPress = ((MarkerData marker, PopupController popupController) {
if (popupController.selectedMarkers.contains(marker)) {
popupController.hideAllPopups();
} else {
popupController.showPopupsOnlyFor(<MarkerData>[marker]);
}
});