Hi!
As far as I know, this is not easily feasible without more intensive calculation. Unfortunately since the cone light shader is just a little bonus I threw in the package and not the main feature, this is a little bit out of the scope of this project.
An alternative solution might be to control the shader parameters using a script that raycasts from the flashlight origin until it collides with something but I haven't tried myself.