I created a dart package async_foreach and I want to set the type of the callback parameter depending on the input to be able to leverage the power of stati