SPValue<T> class
Represents a shared preference entry with no default value.
The value getter will return null
if the value is not found in shared
preferences.
- Inheritance
-
- Object
- SPValueBase<
T> - SPValue
Constructors
-
SPValue({required SharedPrefGetter<
T> getter, required SharedPrefSetter<T> setter, required SharedPrefRemover remover, required String key}) -
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
) → Future< bool> -
Remove value from shared preferences.
inherited
-
setValue(
T value) → Future< bool> -
Set value to shared preferences.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited