you should define a function on your data class to...
# announcements
k
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)
}