ContactProviderImpl class
- Inheritance
-
- Object
- ContactProvider
- ContactProviderImpl
Constructors
Properties
-
contactMap
↔ Map<
String, ContactInfo?> -
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onContactInfoUpdated
↔ Stream<
ContactInfo?> ? -
联系人信息变更通知,调用initListener之后不为空
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subscriptions
→ List<
StreamSubscription> -
final
Methods
-
cleanCache(
) → void -
override
-
fetchContactList(
) → Future< List< ContactInfo> > -
override
-
fetchUserList(
List< String> accIdList) → Future<List< ContactInfo> > -
根据
accIdList
批量获取用户信息 优先从缓存获取,失败则从服务端获取 不走数据库override -
getContact(
String accId, {bool needRefresh = false, bool needFriend = true}) → Future< ContactInfo?> -
override
-
getContactCache(
) → List< ContactInfo> -
返回缓存的联系人列表,限好友
override
-
getContactInCache(
String accId) → ContactInfo? -
override
-
initListener(
) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListeners(
) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited