src/main/java/frc/robot/util/StreamDeckButton.java
/**
   * Toggles the command whenever the button is pressed (on then off then on).
   *
   * @param command       the command to start
   * @param interruptible whether the command is interruptible
   */
Toggles the command whenever the button is pressed (on then off then on).
@param command       the command to start
@param interruptible whether the command is interruptible
Toggles the command whenever the button is pressed ( on then off then on ) . @param command the command to start @param interruptible whether the command is interruptible
public StreamDeckButton toggleWhenPressed(final Command command, boolean interruptible) {
    toggleWhenActive(command, interruptible);
    currentCommand = command;
    return this;
  }
public StreamDeckButton toggleWhenPressed ( final Command command , boolean interruptible ) { toggleWhenActive ( command , interruptible ) ; currentCommand = command ; return this ; }
Toggles the command whenever the button is pressed (on then off then on).
Toggles the command whenever the button is pressed ( on then off then on ) .