Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
setter example
class MyViewModel @Inject constructor(private val dependency1: Dependency1,
private val dependency2: Dependency2,
...)
{
private var id: Int? = null
fun setupId(id: Int){
this.id = id
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment