SpUtil class
Constructors
- SpUtil()
-
factory
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
-
getBool(
String key) → Future< bool?> - 获取保存bool
-
getDouble(
String key) → Future< double?> - 获取保存的浮点型
-
getInt(
String key) → Future< int?> - 获取保存整型
-
getString(
String key) → Future< String?> - 获取字符串
-
getStringList(
String key) → Future< List< String> ?> - 获取保存字符串列表
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putBool(
String key, bool value) → Future< void> - 保存bool
-
putDouble(
String key, String value) → Future< void> - 保存浮点型
-
putInt(
String key, int value) → Future< void> - 保存整型
-
putString(
String key, String value) → Future< void> - 保存字符串
-
putStringList(
String key, List< String> value) → Future<void> - 保存字符串列表
-
remove(
String key) → Future< void> - 删除保存的数据
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited