src/main/java/frc/robot/util/StreamDeckButton.java
/**
   * Cancels the command when the button is pressed.
   *
   * @param command the command to start
   * @return this button, so calls can be chained
   */
Cancels the command when the button is pressed.
@param command the command to start
@return this button, so calls can be chained
Cancels the command when the button is pressed . @param command the command to start @return this button so calls can be chained
public StreamDeckButton cancelWhenPressed(final Command command) {
    cancelWhenActive(command);
    currentCommand = command;
    return this;
  }
public StreamDeckButton cancelWhenPressed ( final Command command ) { cancelWhenActive ( command ) ; currentCommand = command ; return this ; }
Cancels the command when the button is pressed.
Cancels the command when the button is pressed .