In Kotlin, when declaring the type of variable, a colon is used. Even when declaring LiveData, a colon is used. So why is an equals sign used for MutableLiveData? I haven't been able to figure this out. I spent about 2 hours a few days ago trying to understand why my MutableLiveData variable wasn't working only to realize I needed an equals instead of a colon.
Example:
private val _liveData = MutableLiveData<Int>()
val liveData: LiveData<Int>
Thanks in advance!