toggle method

void toggle()

Implementation

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