Function

toggle()

Toggles the Boolean variable's value.

Source
fun toggle() { inout }