Is it possible to pass a Function with parameters to a VoidCallback?
for example something like this:
class MyClass { void doSomething(int i){ }
Flutter already has a typedef for this: ValueSetter.
So you can pass an instance of ValueSetter to your other class.
ValueSetter