the only way to do what you want is reflection: `...
# announcements
k
the only way to do what you want is reflection:
Copy code
fun KMutableProperty<Boolean>.toggle() {
    setter.call(!getter.call())
}
but please don't