how can I pass a property to a companion object?
# getting-started
d
how can I pass a property to a companion object?
m
Doesn’t make sense. The companion object is static, so there isn’t any instance of Navigation to access for the stateManager object.
☝️ 3
d
yes, you are right, thanks
m
Interestingly, the reverse is possible even like this 🙂
👍 2
a
I think you could change it to a lateinit var and initialize it in the init block of Navigation class.