UserService class abstract

Implementers

Constructors

UserService.new()

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

bindResponse(UserStateChangedResponse response) → void
Bind user state changed listener
dispose() → void
fetchUserInfos({required List<String> userIds}) Future<List<UserInfoProtocol>>
Get user info by userIds.The frequency of api usage for free users is 100 times in 1 second.Upgrading the package can increase the usage.
login({required String userId, required String tokenOrPwd, bool isPassword = false}) Future<void>
Login SDK
logout() Future<void>
Logout SDK
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unbindResponse(UserStateChangedResponse response) → void
Unbind user state changed listener
updateUserInfo({UserInfoProtocol? user}) Future<void>
Update user info.The frequency of api usage for free users is 100 times in 1 second.Upgrading the package can increase the usage.
userFromJson(Map<String, dynamic>? json) UserInfoProtocol?
userToJson(UserInfoProtocol? giftEntityProtocol) Map<String, dynamic>?

Operators

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