I'm using Kotlin and at the beginning of my application I declare a variable that I initialized later, with the aim of not declaring it as null at the beginning and thus avoiding the annoying signs of Nullability (!!):
private lateinit var variableName: Type
At a certain point I want to know if the variable has already been initialized to perform a certain instruction, otherwise I will ignore it.
I already try to use LET, but it does not work for me.
variableName.let{ código }
I pretend to know if you can do something similar to
if(variableName.isInitialized){}