I know this may not readly be the answer you all are expecting, but...
Solution; when on your home screen search bar, use the Google microphone
& ask your PHONE "OPEN FLASHLIGHT"
now that it is on; use the Google searchbar &ask your PHONE "CLOSE FLASHLIGHT"
This can also be done with...