construct method
Future<PostCommentContainer>
construct(
- String appId,
- PostCommentModel comment,
- List<
PostCommentContainer?> ? commentComments, - 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,
);
}