toggle method

dynamic toggle()

method to change state of the drawer

Implementation

toggle() {
  if (state == MenuState.open) {
    close();
  } else if (state == MenuState.closed) {
    open();
  }
}