This small example demonstrates how parameters can be injected directly into an Android ViewModel, getting rid of init functions. As a result the ViewModel becomes cleaner and is easier to test.
A detailed description of this example can be found on Dev.to.