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
getter/setter pair
prefix String
getter/setter pair
sharedPreferences ↔ SharedPreferences?
getter/setter pair
subs Map
getter/setter pair

Static Methods

applyCache() → void
checkInit() → dynamic
clearCache() → void
disableCaching() → void
enableCaching() → void
get(String key) → dynamic
getBool(String key) bool?
getDouble(String key) double?
getInt(String key) int?
getKeys() Set<String>
getString(String key) String?
getStringList(String key) List<String>?
init({String prefix = ''}) Future<bool>
notify(String key) → void
onNotify(String key, Function f) → void
onNotifyRemove(String key) → void
setBool(String key, bool val) → dynamic
setDefaultValues(Map 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