Prefs class
shared preferences
Constructors
- Prefs()
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
-
clear(
) → Future< bool> -
contains(
String key) → Future< bool> -
getBool(
String key, {dynamic defValue = false}) → Future< bool> -
getDouble(
String key, {dynamic defValue = 0.0}) → Future< double> -
getInt(
String key, {dynamic defValue = 0}) → Future< int> -
getKeys(
) → Future< Set< String> > -
getPrefs(
) → Future< SharedPreferences> -
getString(
String key, {dynamic defValue = ""}) → Future< String> -
remove(
String key) → Future< bool> -
setBool(
String key, bool value) → Future< bool> -
setDouble(
String key, double value) → Future< bool> -
setInt(
String key, int value) → Future< bool> -
setString(
String key, String value) → Future< bool>