Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// having "with"
with(viewModel){
val balanceText = this.balanceText
val category = this.category.run {
value = false
}
}
// without using "with"
val balanceText = viewmodel.balanceText
val category = viewmodel.category.run {
value = false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment