toggle method

void toggle()

Implementation

void toggle() {
  if (_isOpened) {
    close();
  } else {
    open();
  }
}