jfoenix/src/main/java/com/jfoenix/controls/JFXDrawersStack.java
public void toggle(JFXDrawer drawer, boolean show) {
        if (!drawers.contains(drawer)) {
            addDrawer(drawer);
        }
        if (!show) {
            if (drawer.isOpened() || drawer.isOpening()) {
                drawer.close();
            }
        } else {
            if (!drawer.isOpened() && !drawer.isOpening()) {
                updateDrawerPosition(drawer);
                drawer.open();
            }
        }
    }
/**
     * toggle on/off a drawer in the stack
     *
     * @param drawer the drawer to be toggled
     * @param show   true to toggle on, false to toggle off
     */
toggle on/off a drawer in the stack
@param drawer the drawer to be toggled
@param show   true to toggle on, false to toggle off
toggle on / off a drawer in the stack @param drawer the drawer to be toggled @param show true to toggle on false to toggle off
public void toggle(JFXDrawer drawer, boolean show) {
        if (!drawers.contains(drawer)) {
            addDrawer(drawer);
        }
        if (!show) {
            if (drawer.isOpened() || drawer.isOpening()) {
                drawer.close();
            }
        } else {
            if (!drawer.isOpened() && !drawer.isOpening()) {
                updateDrawerPosition(drawer);
                drawer.open();
            }
        }
    }
public void toggle ( JFXDrawer drawer , boolean show ) { if ( ! drawers . contains ( drawer ) ) { addDrawer ( drawer ) ; } if ( ! show ) { if ( drawer . isOpened ( ) || drawer . isOpening ( ) ) { drawer . close ( ) ; } } else { if ( ! drawer . isOpened ( ) && ! drawer . isOpening ( ) ) { updateDrawerPosition ( drawer ) ; drawer . open ( ) ; } } }
toggle on/off a drawer in the stack
 @param drawer the drawer to be toggled
 @param show   true to toggle on, false to toggle off
toggle on / off a drawer in the stack @param drawer the drawer to be toggled @param show true to toggle on false to toggle off