toggle method
void
toggle()
Toggles the popover, matching a tap on its trigger.
Unlike checking isOpen manually (which stays true until the close
animation finishes), toggle reverses cleanly back to open when called
mid-close.
Implementation
void toggle() => _state?._togglePopover();