StorageService class
StorageService 存储服务
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- prefs → SharedPreferences
-
SharedPreferences 实例
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → 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> ? - 获取字符串列表
-
init(
) → Future< void> - 初始化
-
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 Properties
- instance → StorageService
-
StorageService 实例
no setter