UserManager class

用户管理器,仿照 OpenIM UserManager。

Constructors

UserManager()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userInfo → UserInfo?
no setter

Methods

bindWsEvents() → void
getSelfUserInfo() → Future<UserInfo>
拉取当前登录用户详情(含 is_robot / is_official,来自 /user/setting)
getUserSetting() → Future<UserSetting>
loadCachedSelfInfo() → Future<UserInfo?>
从本地缓存恢复用户信息(断网 / 冷启动)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSelfInfo({String? avatar, String? nickname, int? gender, String? motto, String? birthday}) → Future<void>
setUserListener(OnUserListener listener) → void
toString() → String
A string representation of this object.
inherited
unbindWsEvents() → void

Operators

operator ==(Object other) → bool
The equality operator.
inherited