toggle method

void toggle()

Toggles the visibility of the popover.

Implementation

void toggle() => _isOpen ? hide() : show();