We'd like to just check if propertyId is set, and ...
# announcements
s
We'd like to just check if propertyId is set, and if it isn't then get the propertyId of the
property
object.
a
Can you just use the lazy{} delegate?
val propertyId:PropertyId by lazy{ property.propertyId }
Not on a PC with IntelliJ so Can't check
s
that will always evaluate to the
property.propertyId
, I only want to do that if
propertyId
is not set.
a
Ok, misread your requirements