JsonCacheSharedPreferences class final
Persistent preferences file cache.
- Implemented types
Constructors
-
Sets the
SharedPreferences
instance.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → Future< void> -
Frees up the preferences file space.
override
-
contains(
String key) → Future< bool> -
Checks whether there is data in the preferences at
key
.override -
keys(
) → Future< UnmodifiableListView< String> > -
The cache keys.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
String key, Map< String, dynamic> value) → Future<void> -
Writes
value
to the preferences file.override -
remove(
String key) → Future< void> -
Removes an entry from the preferences file storage at
key
.override -
toString(
) → String -
A string representation of this object.
inherited
-
value(
String key) → Future< Map< String, dynamic> ?> -
The value at
key
from the preferences file; it returns null if a cache miss occurs.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited