value
The value of this variable.
var <T : Boolean> BooleanVarOf<T>.value: T(source)
import kotlinx.cinterop.*
fun main() {
// Create a BooleanVarOf with an initial value of true
val boolVar = BooleanVarOf(true)
// Read the current value
println("Initial value: ${boolVar.value}")
// Update the value to false
boolVar.value = false
println("After update: ${boolVar.value}")
}