PrefService class

Constructors

PrefService()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

cache Map<String, dynamic>
getter/setter pair
prefix String
getter/setter pair
sharedPreferences ↔ SharedPreferences
getter/setter pair
subs Map
getter/setter pair

Static Methods

applyCache() → void
checkInit() → dynamic
clear() → void
disableCaching() → void
enableCaching() → void
get(String key, {bool ignoreCache = false}) Object?
getBool(String key, {bool ignoreCache = false}) bool?
getDouble(String key, {bool ignoreCache = false}) double?
getInt(String key, {bool ignoreCache = false}) int?
getKeys() Set<String>
getString(String key, {bool ignoreCache = false}) String?
getStringList(String key, {bool ignoreCache = false}) List<String>?
init({String prefix = ''}) Future<bool>
notify(String key) → void
onNotify(String key, Function f) → void
onNotifyRemove(String key) → void
rebuildCache() → void
setBool(String key, bool val) → dynamic
setDefaultValues(Map<String, dynamic> values) → void
setDouble(String key, double val) → dynamic
setInt(String key, int val) → dynamic
setString(String key, String val) → dynamic
setStringList(String key, List<String> val) → dynamic
showError(BuildContext context, String message) → void