SharePreferenceCache class

A cache access provider class for shared preferences using shared_preferences library.

This cache provider implementation is used by default, if non is provided explicitly.

Inheritance

Constructors

SharePreferenceCache()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
keys Set
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

containsKey(String key) bool
override
getBool(String key) bool
override
getDouble(String key) double
override
getInt(String key) int
override
getKeys() Set
override
getString(String key) String
override
getValue<T>(String key, T defaultValue) → T
override
init() Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
remove(String key) Future<void>
override
removeAll() Future<void>
override
setBool(String key, bool value) Future<void>
override
setDouble(String key, double value) Future<void>
override
setInt(String key, int value) Future<void>
override
setObject<T>(String key, T value) Future<void>
override
setString(String key, String value) Future<void>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited