i'm new to kotlin for android. and i want to access class member that having same name in extension function. for example:
var visibility = null //class level variable
//EXTENSION FUNCTION
fun ProgressBar.changeVisibleState(flag: Boolean) {
if (flag)
visibility = View.VISIBLE
else
visibility = View.INVISIBLE
}
how can i access visibility
in changeVisibleState
method.