toggle method

void toggle()

Toggles the popover state.

Implementation

void toggle() {
  _isOpen = !_isOpen;
  notifyListeners();
}