I'm learning to Develop Android Apps using Kotlin
. I previously used to Develop using Java
. While coding in Android Studio, I can see that the return types, parameters, etc. used in the Lambdas, methods, etc. are written as View!.
I know that the ?
after the type in Kotlin means a Nullable type. Though what does the !
mean.
For example:
val item = mySpinner.selectedItem
The return type is Any!
What does the ! mean? Is it the same as a Nullable type i.e. Any?
?
Thanks.