Join Slack
Powered by
I utilize kotlin's delegate functionallity for thi...
# announcements
s
Stefan Mitev
10/30/2018, 9:49 AM
I utilize kotlin's delegate functionallity for this. I am not the author of this, but I do something similar:
https://gist.github.com/toddway/14527bfd94d132c3b1998e38ba68d6ff
g
gildor
10/30/2018, 9:52 AM
Yeah, we use similar approach
gildor
10/30/2018, 9:53 AM
also you can implement getValue/setValue operators as extension, so this approach doesn’t require creation of wrapper, but works only if you don’t have default value for a field
3
Views
Open in Slack
Previous
Next