Skip to content

Instantly share code, notes, and snippets.

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){ = id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment