Why we use this? Or what is the purpose of this in Kotlin ? Anyone know.please tell me ASAP. Waiting.
6/8/2020 6:50:31 PM
This is looking like as a Boolean is declared to check the status whether it is open or not.
It is similar to status of something that is not going to change. It is because 'val' variables are immutable. So isOpen will remain false throughout the code.
It is use in RecyclerViewAdapter.
Still it means the same?
As I do not have the complete code, all I can say by just analysing the coding style and I think it is checking whether something has been opened or not.
Thank you. ✌
Its var* sorry typing mistake.
So it must be as I have suggested above or share your code for specific answer.
I got it. Thank u
Learn Playing. Play Learning
Send us a message