-
public final class PreferenceKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> Unitclear(Preference<T> $self)Unset the preference. final static Unittoggle(Preference<Boolean> $self)Toggle the preference value. final static Preference<Boolean>flipped(Preference<Boolean> $self)Returns a new preference with its boolean value flipped. -
-
Method Detail
-
clear
final static <T extends Any> Unit clear(Preference<T> $self)
Unset the preference.
-
toggle
final static Unit toggle(Preference<Boolean> $self)
Toggle the preference value. A default value is taken as the initial one if the preference is currently unset.
-
flipped
final static Preference<Boolean> flipped(Preference<Boolean> $self)
Returns a new preference with its boolean value flipped.
-
-
-
-