Toggle a boolean value for the given key. If the key doesn't already exist in the Data Manager then it is toggled from false.
When the value is first set, a setdata
event is emitted.
name | type | description |
---|---|---|
key | string | object |
The key to toggle the value for. |
This DataManager object.