togglePopupSpec abstract method

void togglePopupSpec(
  1. PopupSpec popupSpec, {
  2. bool disableAnimation = false,
})

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

If disableAnimation is true and a popup animation is enabled then the animation will not be used when showing/hiding the popup.

Implementation

void togglePopupSpec(PopupSpec popupSpec, {bool disableAnimation = false});