togglePopup method

void togglePopup(
  1. Marker? marker
)

Hide the popup if it is showing for the given marker, otherwise show it for that marker.

Implementation

void togglePopup(Marker? marker) {
  streamController?.add(PopupEvent.toggle(marker));
}