toggle method

void toggle()

Toggles visibility of the popover.

Implementation

void toggle() {
  if (_portalController.isShowing) {
    hide();
  } else {
    show();
  }
}