Join Slack
Powered by
you should define a function on your data class to...
# announcements
k
kevinmost
02/05/2018, 6:18 PM
you should define a function on your data class to set the field you want to set
Copy code
data class Foo(val bar: Bar) { fun withBar(bar: Bar) = copy(bar = bar) }
5
Views
Open in Slack
Previous
Next