postCommentRepository method

  1. @override
PostCommentRepository? postCommentRepository(
  1. String? appId
)
override

Implementation

@override
PostCommentRepository? postCommentRepository(String? appId) {
  if ((appId != null) && (_postCommentRepository[appId] == null)) {
    _postCommentRepository[appId] = PostCommentCache(PostCommentFirestore(
        () => appRepository()!.getSubCollection(appId, 'postcomment'),
        appId));
  }
  return _postCommentRepository[appId];
}