chatMemberInfoRepository method

  1. @override
ChatMemberInfoRepository? chatMemberInfoRepository(
  1. String? appId,
  2. String? roomId
)
override

Implementation

@override
ChatMemberInfoRepository? chatMemberInfoRepository(
    String? appId, String? roomId) {
  var key = appId == null || roomId == null ? null : '$appId-$roomId';
  if ((key != null) && (_chatMemberInfoRepository[key] == null)) {
    _chatMemberInfoRepository[key] = ChatMemberInfoCache(
        ChatMemberInfoFirestore(
            () => roomRepository(appId)!
                .getSubCollection(roomId!, 'chatmemberinfo'),
            appId!));
  }
  return _chatMemberInfoRepository[key];
}