title: Pass a function with parameters to a VoidCallback
body: <p>Is it possible to pass a Function with parameters to a VoidCallback?</p>
  
  <p>for example something like this:</p>
  
  <pre><code>class MyClass {
    void doSomething(int i){
  
    }
  
    MyOtherClass myOtherClass = new MyOtherClass(doSomething);
  }
  
  
  class MyOtherClass {
    final VoidCallback callback(int);
  
    MyOtherClass(this.callback);
  
    callback(5);
  }
  </code></pre>