ProKitPrefManager class
Constructors
- ProKitPrefManager.new()
-
factory
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
- prefs → SharedPreferences?
-
Getter for SharedPreferences instance.
no setter
Static Methods
-
clear(
) → Future< bool> - Clears all entries in SharedPreferences.
-
getBool(
String key, {bool defaultValue = false}) → bool - Gets a boolean value from SharedPreferences.
-
getDouble(
String key, {double defaultValue = 0.0}) → double - Gets a double value from SharedPreferences.
-
getInt(
String key, {int defaultValue = 0}) → int - Gets an integer value from SharedPreferences.
-
getString(
String key, {String defaultValue = ''}) → String - Example methods for managing data in SharedPreferences Gets a string value from SharedPreferences.
-
getStringList(
String key) → List< String> ? - Gets a list of strings from SharedPreferences.
-
initialize(
) → Future< void> - Initializes SharedPreferences.
-
remove(
String key) → Future< bool> - Removes an entry from SharedPreferences.
-
setBool(
String key, bool value) → Future< bool> - Sets a boolean value in SharedPreferences.
-
setDouble(
String key, double value) → Future< bool> - Sets a double value in SharedPreferences.
-
setInt(
String key, int value) → Future< bool> - Sets an integer value in SharedPreferences.
-
setString(
String key, String value) → Future< bool> - Sets a string value in SharedPreferences.
-
setStringList(
String key, List< String> value) → Future<bool> - Sets a list of strings in SharedPreferences.