Skip to content

Instantly share code, notes, and snippets.

@Marchuck
Created November 17, 2019 19:57
Show Gist options
  • Save Marchuck/621b6067dcd15b28328ad655217c0e6b to your computer and use it in GitHub Desktop.
Save Marchuck/621b6067dcd15b28328ad655217c0e6b to your computer and use it in GitHub Desktop.
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