Kotlin Check Lateinit Var Is Initialized

March 19, 2019
private lateinit var itemId: String

val isInitalized = ::itemId.isInitialized

NOTE: Available since Kotlin 1.2

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.