pemeriksaan init Kotlin var

lateinit var file: File    

if (this::file.isInitialized) { ... }
Hjmcoder