I have function inside my Inherited widget, I would like to use this function with parameters, but I don't get how that can be done. for instance the function below works fine to have inside the inherited widget:
final Function onTap;
However I would like to use something like below:
final Function onTap(String name);
Anyone know if this can be done somehow and in that case how? any help or input appreciated, thanks!