toggleClassName method
Add or remove the given CSS class on the popup container, depending on whether the container currently has that class.
@param {string} className Non-empty string with CSS class name to add/remove
@returns {boolean} if the class was removed return false, if class was added, then return true
@example let popup = new mapboxgl.Popup() popup.toggleClassName('toggleClass')
Implementation
bool toggleClassName(String className) => jsObject.toggleClassName(className);