BaseSharedPreferences class
BaseSharedPreferences is a base class for all shared preferences
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 Methods
-
containKey(
String key) → Future< bool> - containKey Check if the key is exist
-
getBoolValue(
String key) → Future< bool?> -
getIntValue
Get int value from SharedPreferences -
getDoubleValue(
String key) → Future< double?> -
getIntValue
Get int value from SharedPreferences -
getStringValue(
String key) → Future< String> - getStringValue Get string value from SharedPreferences
-
remove(
String key) → Future< void> -
savedBoolValue(
String key, bool value) → Future< bool> -
saveBoolValue
Save bool value to SharedPreferences -
savedDoubleValue(
String key, double value) → Future< bool> -
saveIntValue
Save int value to SharedPreferences -
saveStringValue(
String key, String value) → Future< bool> - saveStringValue Save string value to SharedPreferences