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

Constructors

SPValue({required SharedPrefGetter<T> getter, required SharedPrefSetter<T> setter, required SharedPrefRemover remover, required String key})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T?
Decoded value, stored in shared preferences.
no setterinherited

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