I want to know if there is a way to use a function Type as var, for example in this code I am trying to send a function to get triggered in a Button tap Act