This is alright, there’s just one more extra step you need to take - you have to get the user widget object and cast it to your widget class, like this:
In your case, you’d take gasoline progress bar and get its user widget object which you’d cast to GasolineCarBar_Widget. From there you can call your function.