lateinit property context has not been initialized
I have a class which gets a context and uri and sets them in a MediaMetadatRetriever as dataSource. The problem is that I initialize context property with withContext function, but it seems to not being initialized and it ends up with a kotlin.UninitializedPropertyAccessException. Any help is appreciated.
Class:
class MyClass {
private lateinit var context: Conetxt
private lateinit var uri: Uri
private val retriever = MediaMetadataRetriever()
fun withContext(context:...