RWSharedPreferences class
SharedPreferences 工具类
读取数据
RWSharePreferences.getBool(key)
...
写入数据
RWSharePreferences.saveBool(key, value)
...
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
-
getBool(
String key) → Future< bool?> -
getDouble(
String key) → Future< double?> -
getInt(
String key) → Future< int?> -
getString(
String key) → Future< String?> -
getStringArray(
String key) → Future< List< String> ?> -
saveBool(
String key, bool value) → dynamic -
saveDouble(
String key, double value) → dynamic -
saveInt(
String key, int value) → dynamic -
saveString(
String key, String value) → dynamic -
saveStringArray(
String key, List< String> value) → dynamic