ContactProvider class abstract

Implementers

Constructors

ContactProvider.new()

Properties

contactMap Map<String, ContactInfo?>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onContactInfoUpdated Stream<ContactInfo?>?
联系人信息变更通知,调用initListener之后不为空
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cleanCache() → void
fetchContactList() Future<List<ContactInfo>>
fetchUserList(List<String> accIdList) Future<List<ContactInfo>>
根据accIdList 批量获取用户信息 优先从缓存获取,失败则从服务端获取 不走数据库
getContact(String accId, {bool needRefresh = false, bool needFriend = true}) Future<ContactInfo?>
getContactCache() List<ContactInfo>
返回缓存的联系人列表,限好友
getContactInCache(String accId) ContactInfo?
initListener() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListeners() → void
toString() String
A string representation of this object.
inherited

Operators

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