toggle

fun toggle(key: String): Boolean

Toggles a Boolean to the given key, and if the member doesn't exist, it will be set to true.

Return

The new Boolean value

Parameters

key

The key of the Boolean