src/main/java/frc/robot/util/StreamDeckButton.java
/**
   * Toggles the command whenever the button is pressed (on then off then on).  The command is set
   * to be interruptible.
   *
   * @param command the command to start
   * @return this button, so calls can be chained
   */
Toggles the command whenever the button is pressed (on then off then on).  The command is set
to be interruptible.

@param command the command to start
@return this button, so calls can be chained
Toggles the command whenever the button is pressed ( on then off then on ) . The command is set to be interruptible . @param command the command to start @return this button so calls can be chained
public StreamDeckButton toggleWhenPressed(final Command command) {
    toggleWhenActive(command);
    currentCommand = command;
    return this;
  }
public StreamDeckButton toggleWhenPressed ( final Command command ) { toggleWhenActive ( command ) ; 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 ) .