Created
November 17, 2019 19:57
-
-
Save Marchuck/621b6067dcd15b28328ad655217c0e6b to your computer and use it in GitHub Desktop.
setter example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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