toggle

Toggle the preference value. A default value is taken as the initial one if the preference is currently unset.