Is there a way to get the default value of a KProp...
# reflect
p
Is there a way to get the default value of a KProperty?
u
pabl0rg: what do you mean by the default value? Can you show an example?
p
for example: i'd like to know that theProp is null by default in
Copy code
var theProp: String = null
u
There’s no way to know the previous value of a property, JVM does not support that
p
I guess I'll just check the current value and that will be the default.
Thanks