How do I create a `ViewModel` class with a constru...
# android
e
How do I create a
ViewModel
class with a constructor that takes parameters? I found this advice, but there’s a comment saying it’s deprecated. https://www.albertgao.xyz/2018/04/13/how-to-add-additional-parameters-to-viewmodel-via-kotlin/
stackoverflow 1