addMainComment method

dynamic addMainComment({
  1. required String comment,
  2. String? postId,
})

Implementation

addMainComment({required String comment, String? postId}) {
  var c = CommentDTO(
    postId: postId,
    commentedBy: "Test User",
    userId: "Login User Id",
    userDispalyName: "SA",
    commentedDate: DateTime.now(),
    comment: comment,
    commentImgUrl: [],
    commentLikeCounts: getEmojiesForLike(),
    replies: [],
    likesUsers: [],
  );
  listOfComments.add(c);
}