I wonder if there is a way to check if a lateinit variable has been initialized. For example:
lateinit
class Foo() { private lateinit var myFile: Fi
Using .isInitialized property one can check initialization state of a lateinit variable.
.isInitialized
if(::file.isInitialized){ //File is initialized }else{ //File is not initialized }