Join Slack
Powered by
Hello, is there a way in Kotlin to use property de...
# android
k
Konstantin Tskhovrebov
12/10/2019, 2:03 PM
Hello, is there a way in Kotlin to use property delegates for data classes in constructor? I want to create something like Swift's
Property Wrapper
c
Casey Brooks
12/10/2019, 7:21 PM
You can put that property in the class body instead of the constructor
k
Konstantin Tskhovrebov
12/11/2019, 1:47 PM
No. I want to use data class as usual but have additional logic for property getter
Open in Slack
Previous
Next