YTSPUtils 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
-
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
-
getBlockList(
) → List< String> - 获取黑名单
-
getLastMsg(
String? pk) → IMMessage? - IM 读取与对方聊天的最后一条消息
-
getMuteList(
) → List< String> - 获取免打扰用户列表
-
init(
) → Future< SharedPreferences?> -
insertBlockList(
String id) → Future< bool> - 将用户加入黑名单
-
insertMuteList(
String id) → Future< bool> - 将用户加入免打扰用户列表
-
removeFromBlockList(
String id) → Future< bool> - 将用户从黑名单中移除。
-
removeFromMuteList(
String id) → Future< bool> - 将用户从免打扰列表中移除。
-
saveLastMsg(
String pk, IMMessage? msg) → Future< bool> - IM 保存与对方聊天的最后一条消息