SharedPreferences class
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
-
clear(
) → Future< bool> -
commit(
) → Future< bool> -
containsKey(
String key) → bool -
get(
String key) → Object? -
getBool(
String key) → bool? -
getDouble(
String key) → double? -
getInt(
String key) → int? -
getKeys(
) → Set< String> -
getString(
String key) → String? -
getStringList(
String key) → List< String> ? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reload(
) → Future< void> -
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> -
setStringList(
String key, List< String> value) → Future<bool> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getInstance(
) → Future< SharedPreferences> -
setMockInitialValues(
Map< String, Object> values) → void