dblclick() {
        const state_ = prompt("Re enter the value") || "0";
        if (!this.isValidState(state_)) {
            showMessage("Invalid constant value. Please only input binary values");
            return;
        }

        this.state = state_;
        this.newBitWidth(this.state.toString().length);
    }
@memberof ConstantVal
updates state using a prompt when dbl clicked