toggle method

void toggle({
  1. InnerDrawerDirection? direction,
})

Open or Close InnerDrawer

Implementation

void toggle({InnerDrawerDirection? direction}) {
  if (_previouslyOpened)
    close(direction: direction);
  else
    open(direction: direction);
}