construct method

Future<PostCommentContainer> construct(
  1. String appId,
  2. PostCommentModel comment,
  3. List<PostCommentContainer?>? commentComments,
  4. bool? thisMemberLikesThisComment,
)

Implementation

Future<PostCommentContainer> construct(
    String appId,
    PostCommentModel comment,
    List<PostCommentContainer?>? commentComments,
    bool? thisMemberLikesThisComment) async {
  return PostCommentContainer(
    postComment: comment,
    dateTime: comment.timestamp.toString(),
    member:
        await memberPublicInfoRepository(appId: appId)!.get(comment.memberId),
    comment: comment.comment!,
    postCommentContainer: commentComments,
    thisMemberLikesThisComment: thisMemberLikesThisComment,
  );
}