As far as I know, you can have one action on that button, in your case you want it to do 2 actions, turn on and turn off.
Even though you are controlling flashlight, you have 2 different commands, 1 for ON and 1 for OFF.
As mentioned above, you can only assign 1 command.
Thank you very much for your suggestion.
Your suggestion has been communicated to the developer and the development project manager is reviewing the content. After reviewing your suggestions, we will apply them to the official version if your proposal matches our concept.
We appreciate your contribution to the beta program.
One UI Beta Team