title: Flutter - How to use parameters inside defined function inside inherited widget
body: <p>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:</p>
  
  <pre><code>final Function onTap;
  </code></pre>
  
  <p>However I would like to use something like below:</p>
  
  <pre><code>final Function onTap(String name);
  </code></pre>
  
  <p>Anyone know if this can be done somehow and in that case how? any help or input appreciated, thanks!</p>