So I have a data class in Kotlin that looks someth...
# intellij-plugins
b
So I have a data class in Kotlin that looks something like this: https://github.com/johnlindquist/AceJump/blob/66fd3436fb91ed6a4baf33974e8effef205ac830/src/main/kotlin/com/johnlindquist/acejump/ui/AceUI.kt I would like to update all these property values whenever
editor
changes, so I duplicated all the property assignments. Is it possible to do update these properties without duplicating a bunch of code? I’ve tried simplifying this class a bunch of different ways, and can’t seem to find a good answer (please see below). http://stackoverflow.com/questions/40967544/how-to-explicitly-invoke-an-objects-init-block http://stackoverflow.com/questions/41214452/why-dont-property-initializers-call-a-custom-setter